diff options
author | John Reck <jreck@google.com> | 2014-10-23 11:02:19 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2014-10-23 13:59:47 -0700 |
commit | 1125d1fa92ab9f3b8315bbfb72e038b62dfd454b (patch) | |
tree | b4a292e191bc815bb658355f879178706ed3f3e9 /libs/hwui/renderthread/EglManager.h | |
parent | 9b67a1a232dc0e1cda346271c3a9d118228001ee (diff) |
Add some free zoom to lockHardwareCanvas
Bug: 18099195
Don't use EGL_SWAP_BUFFER_PRESERVED on surfaces that will
never benefit. Also clean up some confusing naming
Change-Id: I674ca64e0464a3282cff79e5ecd350d08f47c014
Diffstat (limited to 'libs/hwui/renderthread/EglManager.h')
-rw-r--r-- | libs/hwui/renderthread/EglManager.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/hwui/renderthread/EglManager.h b/libs/hwui/renderthread/EglManager.h index 71213fbf9343..ae03ea1fc3b8 100644 --- a/libs/hwui/renderthread/EglManager.h +++ b/libs/hwui/renderthread/EglManager.h @@ -49,7 +49,8 @@ public: void beginFrame(EGLSurface surface, EGLint* width, EGLint* height); bool swapBuffers(EGLSurface surface); - bool enableDirtyRegions(EGLSurface surface); + // Returns true iff the surface is now preserving buffers. + bool setPreserveBuffer(EGLSurface surface, bool preserve); void setTextureAtlas(const sp<GraphicBuffer>& buffer, int64_t* map, size_t mapSize); @@ -71,8 +72,8 @@ private: EGLContext mEglContext; EGLSurface mPBufferSurface; - const bool mRequestDirtyRegions; - bool mCanSetDirtyRegions; + const bool mAllowPreserveBuffer; + bool mCanSetPreserveBuffer; EGLSurface mCurrentSurface; |