summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-10-26 15:49:47 -0700
committerJohn Reck <jreck@google.com>2015-10-27 07:54:17 -0700
commit77c40109cf25d29f85ee6c13aeb96e22e55f33ab (patch)
tree479c941dfbb94c36fb73dc86e03da8412636fcec /libs/hwui/renderthread
parent5918519f972b4eedfc0e402b96cf8a288446deed (diff)
Cleanups
Change-Id: I10001711afb2530c5dc19aebf2d055ae41f58c6a
Diffstat (limited to 'libs/hwui/renderthread')
-rw-r--r--libs/hwui/renderthread/CanvasContext.cpp6
-rw-r--r--libs/hwui/renderthread/CanvasContext.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp
index 7c0f0b67b8a3..bceb02d0c73c 100644
--- a/libs/hwui/renderthread/CanvasContext.cpp
+++ b/libs/hwui/renderthread/CanvasContext.cpp
@@ -266,11 +266,11 @@ void CanvasContext::draw() {
Frame frame = mEglManager.beginFrame(mEglSurface);
- if (frame.width() != lastFrameWidth || frame.height() != lastFrameHeight) {
+ if (frame.width() != mLastFrameWidth || frame.height() != mLastFrameHeight) {
// can't rely on prior content of window if viewport size changes
dirty.setEmpty();
- lastFrameWidth = frame.width();
- lastFrameHeight = frame.height();
+ mLastFrameWidth = frame.width();
+ mLastFrameHeight = frame.height();
} else if (mHaveNewSurface || frame.bufferAge() == 0) {
// New surface needs a full draw
dirty.setEmpty();
diff --git a/libs/hwui/renderthread/CanvasContext.h b/libs/hwui/renderthread/CanvasContext.h
index 16956e6f1e47..533d69374ed7 100644
--- a/libs/hwui/renderthread/CanvasContext.h
+++ b/libs/hwui/renderthread/CanvasContext.h
@@ -141,8 +141,8 @@ private:
void freePrefetechedLayers();
- int lastFrameWidth = 0;
- int lastFrameHeight = 0;
+ EGLint mLastFrameWidth = 0;
+ EGLint mLastFrameHeight = 0;
RenderThread& mRenderThread;
EglManager& mEglManager;