summaryrefslogtreecommitdiff
path: root/libs/hwui/Extensions.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2015-11-05 01:38:25 +0000
committer John Reck <jreck@google.com> 2015-11-05 01:38:25 +0000
commit096895550b9d5430d7a001d491566decf4f9791b (patch)
tree18409e55d9d0b89fcc4361b88c08385f1ff8c4e3 /libs/hwui/Extensions.cpp
parentb2442896e3a226c7ebe9d47fa80b257e98a6a34d (diff)
Revert "add DeviceInfo"
This reverts commit b2442896e3a226c7ebe9d47fa80b257e98a6a34d. Change-Id: I50f6555451f71067505245333c8e558b5e3b2b3b
Diffstat (limited to 'libs/hwui/Extensions.cpp')
-rw-r--r--libs/hwui/Extensions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/Extensions.cpp b/libs/hwui/Extensions.cpp
index e257715acaeb..6dd29ad8c703 100644
--- a/libs/hwui/Extensions.cpp
+++ b/libs/hwui/Extensions.cpp
@@ -35,8 +35,8 @@ namespace uirenderer {
#endif
-void Extensions::load() {
- auto extensions = StringUtils::split((const char*) glGetString(GL_EXTENSIONS));
+Extensions::Extensions() {
+ StringCollection extensions((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");