diff options
author | 2017-01-09 14:15:41 -0500 | |
---|---|---|
committer | 2017-01-10 15:05:07 -0500 | |
commit | 8cd3edfa15cc9cdbffa935d19ab894426b08d174 (patch) | |
tree | 289ec13531b91be5adf6306d8d70434bc756b2c1 /libs/hwui/DeferredLayerUpdater.h | |
parent | d14cafc27255e0ed44665a0975a57c487b841ab1 (diff) |
Break Layer class into Gl and Vulkan subclasses
Test: manual testing
Change-Id: Ibd2beed39de3ac6da7448e96496253cfe427dfbb
Diffstat (limited to 'libs/hwui/DeferredLayerUpdater.h')
-rw-r--r-- | libs/hwui/DeferredLayerUpdater.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/hwui/DeferredLayerUpdater.h b/libs/hwui/DeferredLayerUpdater.h index 733500885e67..9be415f4d216 100644 --- a/libs/hwui/DeferredLayerUpdater.h +++ b/libs/hwui/DeferredLayerUpdater.h @@ -22,6 +22,9 @@ #include <SkMatrix.h> #include <utils/StrongPointer.h> +#include <GLES2/gl2.h> +#include <GLES2/gl2ext.h> + #include "Layer.h" #include "Rect.h" #include "renderthread/RenderThread.h" @@ -60,8 +63,8 @@ public: ANDROID_API void setSurfaceTexture(const sp<GLConsumer>& texture, bool needsAttach) { if (texture.get() != mSurfaceTexture.get()) { - mNeedsGLContextAttach = needsAttach; mSurfaceTexture = texture; + mNeedsGLContextAttach = needsAttach; GLenum target = texture->getCurrentTextureTarget(); LOG_ALWAYS_FATAL_IF(target != GL_TEXTURE_2D && target != GL_TEXTURE_EXTERNAL_OES, |