summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/CanvasContext.h
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2018-05-17 13:16:13 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-05-17 13:16:13 -0700
commit117f0c2833d08750a6ed5cdb3160e3fb86f76b71 (patch)
tree96becd2b51cacff4e963fe69c9c9298672212226 /libs/hwui/renderthread/CanvasContext.h
parent15c6708f23ff68f74f484c91749b786496db7930 (diff)
parent6353ff5bb55e706b9eda91ec4cc66d25b1b0eaa8 (diff)
Merge "AnimatedImageDrawable: Eliminate unnecessary calls to redraw" into pi-dev am: a2113aa4ad
am: 6353ff5bb5 Change-Id: I5258721b49834aba58e9bf19162e6a4588f68f0f
Diffstat (limited to 'libs/hwui/renderthread/CanvasContext.h')
-rw-r--r--libs/hwui/renderthread/CanvasContext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.h b/libs/hwui/renderthread/CanvasContext.h
index 358b842cee20..056a70621bef 100644
--- a/libs/hwui/renderthread/CanvasContext.h
+++ b/libs/hwui/renderthread/CanvasContext.h
@@ -209,6 +209,9 @@ private:
// stopped indicates the CanvasContext will reject actual redraw operations,
// and defer repaint until it is un-stopped
bool mStopped = false;
+ // Incremented each time the CanvasContext is stopped. Used to ignore
+ // delayed messages that are triggered after stopping.
+ int mGenerationID;
// CanvasContext is dirty if it has received an update that it has not
// painted onto its surface.
bool mIsDirty = false;