diff options
author | Leon Scroggins III <scroggo@google.com> | 2018-05-17 13:06:32 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-05-17 13:06:32 -0700 |
commit | 6353ff5bb55e706b9eda91ec4cc66d25b1b0eaa8 (patch) | |
tree | 3cdc4494ad7dc3605993c5974545f2cad9353e4b /libs/hwui/renderthread/CanvasContext.h | |
parent | a9d9e2b20667e77f0f03544dd1d27b5e9cb5d5dc (diff) | |
parent | a2113aa4ad5fc241819c672ed5317aa7017331f7 (diff) |
Merge "AnimatedImageDrawable: Eliminate unnecessary calls to redraw" into pi-dev
am: a2113aa4ad
Change-Id: Ice3ac92ebd4ae68d1fe9b8ae46f86e320058d169
Diffstat (limited to 'libs/hwui/renderthread/CanvasContext.h')
-rw-r--r-- | libs/hwui/renderthread/CanvasContext.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.h b/libs/hwui/renderthread/CanvasContext.h index c2cc72a6917f..e52b6447a611 100644 --- a/libs/hwui/renderthread/CanvasContext.h +++ b/libs/hwui/renderthread/CanvasContext.h @@ -213,6 +213,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; |