summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/CanvasContext.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-10-28 19:21:17 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-10-28 19:21:17 +0000
commit3398abb25b6a8614f80f79efcf428a07185fe50f (patch)
treea5562847fd183fad7a51fdebb5aa36e4cfe5907b /libs/hwui/renderthread/CanvasContext.cpp
parent9f091287b1a06986871faebffb0d72771ec99df6 (diff)
parent77c40109cf25d29f85ee6c13aeb96e22e55f33ab (diff)
Merge "Cleanups"
Diffstat (limited to 'libs/hwui/renderthread/CanvasContext.cpp')
-rw-r--r--libs/hwui/renderthread/CanvasContext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp
index 1c6ac8c350da..c199a7169b99 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();