diff options
author | John Reck <jreck@google.com> | 2015-11-05 09:22:17 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2015-11-05 10:13:23 -0800 |
commit | 704bed0da7cc75d0c517d425445de70ceb58060b (patch) | |
tree | 00c151f39181e0503afd7e1e301ce4698d7a45f5 /libs/hwui/renderthread/EglManager.cpp | |
parent | 3b2872a87159e6ba1a4212465a395ffbcbfccc74 (diff) |
add DeviceInfo
This reverts commit 096895550b9d5430d7a001d491566decf4f9791b.
Change-Id: Ib2ed1e96d8f7f88302f5e27fe735687194553104
Diffstat (limited to 'libs/hwui/renderthread/EglManager.cpp')
-rw-r--r-- | libs/hwui/renderthread/EglManager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/hwui/renderthread/EglManager.cpp b/libs/hwui/renderthread/EglManager.cpp index 485759bd1a50..78df29759a44 100644 --- a/libs/hwui/renderthread/EglManager.cpp +++ b/libs/hwui/renderthread/EglManager.cpp @@ -17,15 +17,14 @@ #include "EglManager.h" #include "Caches.h" +#include "DeviceInfo.h" #include "Properties.h" #include "RenderThread.h" #include "renderstate/RenderState.h" #include "utils/StringUtils.h" - #include <cutils/log.h> #include <cutils/properties.h> #include <EGL/eglext.h> - #include <string> #define GLES_VERSION 2 @@ -129,12 +128,14 @@ void EglManager::initialize() { createContext(); createPBufferSurface(); makeCurrent(mPBufferSurface); + DeviceInfo::initialize(); mRenderThread.renderState().onGLContextCreated(); initAtlas(); } void EglManager::initExtensions() { - StringCollection extensions(eglQueryString(mEglDisplay, EGL_EXTENSIONS)); + auto extensions = StringUtils::split( + eglQueryString(mEglDisplay, EGL_EXTENSIONS)); EglExtensions.bufferAge = extensions.has("EGL_EXT_buffer_age"); EglExtensions.setDamage = extensions.has("EGL_KHR_partial_update"); LOG_ALWAYS_FATAL_IF(!extensions.has("EGL_KHR_swap_buffers_with_damage"), |