summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/CanvasContext.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2019-10-21 10:14:58 -0700
committerJohn Reck <jreck@google.com>2019-10-21 10:15:02 -0700
commitca718a06d57ca6250e85b3d7c67ed42f5c6b289f (patch)
tree126b269fc54b42eab526caf2e28918bb5eac9239 /libs/hwui/renderthread/CanvasContext.h
parent3441faa0453907f8713ebccfa33049c2e99e4fe6 (diff)
Fix buffer damage for quad-buffer
Test: none Change-Id: I4789d84945e381d67e96ef37554a161dbd0ab16c
Diffstat (limited to 'libs/hwui/renderthread/CanvasContext.h')
-rw-r--r--libs/hwui/renderthread/CanvasContext.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.h b/libs/hwui/renderthread/CanvasContext.h
index 8a76d6b3fc7a..6e3e43af8c6f 100644
--- a/libs/hwui/renderthread/CanvasContext.h
+++ b/libs/hwui/renderthread/CanvasContext.h
@@ -242,7 +242,8 @@ private:
nsecs_t queueDuration;
};
- RingBuffer<SwapHistory, 3> mSwapHistory;
+ // Need at least 4 because we do quad buffer. Add a 5th for good measure.
+ RingBuffer<SwapHistory, 5> mSwapHistory;
int64_t mFrameNumber = -1;
// last vsync for a dropped frame due to stuffed queue