From 704bed0da7cc75d0c517d425445de70ceb58060b Mon Sep 17 00:00:00 2001 From: John Reck Date: Thu, 5 Nov 2015 09:22:17 -0800 Subject: add DeviceInfo This reverts commit 096895550b9d5430d7a001d491566decf4f9791b. Change-Id: Ib2ed1e96d8f7f88302f5e27fe735687194553104 --- libs/hwui/Extensions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/hwui/Extensions.cpp') diff --git a/libs/hwui/Extensions.cpp b/libs/hwui/Extensions.cpp index 6dd29ad8c703..e257715acaeb 100644 --- a/libs/hwui/Extensions.cpp +++ b/libs/hwui/Extensions.cpp @@ -35,8 +35,8 @@ namespace uirenderer { #endif -Extensions::Extensions() { - StringCollection extensions((const char*) glGetString(GL_EXTENSIONS)); +void Extensions::load() { + 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"); -- cgit v1.2.3-59-g8ed1b