summaryrefslogtreecommitdiff
path: root/libs/hwui/Extensions.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2017-11-03 10:12:19 -0700
committer John Reck <jreck@google.com> 2017-11-03 10:57:44 -0700
commit1bcacfdcab0eaa0cee92bd7f5a1b5e271dd68e52 (patch)
tree4a1366cf2d1cf50b5ec4ed1a8cf0f437053cd0d7 /libs/hwui/Extensions.cpp
parent30ec71c0fe194a551d2e4abaff2159e0730488e0 (diff)
Format the world (or just HWUI)
Test: No code changes, just ran through clang-format Change-Id: Id23aa4ec7eebc0446fe3a30260f33e7fd455bb8c
Diffstat (limited to 'libs/hwui/Extensions.cpp')
-rw-r--r--libs/hwui/Extensions.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/libs/hwui/Extensions.cpp b/libs/hwui/Extensions.cpp
index 0919e82a003b..b7f1fb21d8d7 100644
--- a/libs/hwui/Extensions.cpp
+++ b/libs/hwui/Extensions.cpp
@@ -32,13 +32,13 @@ namespace uirenderer {
Extensions::Extensions() {
if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaVulkan) {
- //Extensions class is used only by OpenGL and SkiaGL pipelines
- //The code below will crash for SkiaVulkan, because OpenGL is not initialized
- //TODO: instantiate Extensions class only for OpenGL pipeline
- //TODO: remove the only usage of Extensions by SkiaGL in SkiaOpenGLReadback::copyImageInto
+ // Extensions class is used only by OpenGL and SkiaGL pipelines
+ // The code below will crash for SkiaVulkan, because OpenGL is not initialized
+ // TODO: instantiate Extensions class only for OpenGL pipeline
+ // TODO: remove the only usage of Extensions by SkiaGL in SkiaOpenGLReadback::copyImageInto
return;
}
- const char* version = (const char*) glGetString(GL_VERSION);
+ const char* version = (const char*)glGetString(GL_VERSION);
// Section 6.1.5 of the OpenGL ES specification indicates the GL version
// string strictly follows this format:
@@ -58,7 +58,7 @@ Extensions::Extensions() {
mVersionMinor = 0;
}
- auto extensions = StringUtils::split((const char*) glGetString(GL_EXTENSIONS));
+ auto extensions = StringUtils::split((const char*)glGetString(GL_EXTENSIONS));
mHasNPot = extensions.has("GL_OES_texture_npot");
mHasFramebufferFetch = extensions.has("GL_NV_shader_framebuffer_fetch");
mHasDiscardFramebuffer = extensions.has("GL_EXT_discard_framebuffer");
@@ -83,5 +83,5 @@ Extensions::Extensions() {
#endif
}
-}; // namespace uirenderer
-}; // namespace android
+}; // namespace uirenderer
+}; // namespace android