summaryrefslogtreecommitdiff
path: root/opengl/libagl/array.cpp
diff options
context:
space:
mode:
author Steven Thomas <steventhomas@google.com> 2019-07-10 19:21:03 -0700
committer Steven Thomas <steventhomas@google.com> 2019-07-10 19:21:03 -0700
commit862e753dd00172801d7757a47e0324c9d3e27f86 (patch)
treebaf655cd7f628d092649c9e10dd2510787aa94d4 /opengl/libagl/array.cpp
parentee07312a52bef52f1a96572e101f7e6e3b00abd8 (diff)
When dropping a frame, merge its damage region
When queuing a new buffer to a buffer queue that is in async mode (which an app can set via eglSwapInterval(display, 0)), we drop any buffer currently in the queue. We'd throw out the dropped buffer's damage region, which is obviously not ok, and causes broken rendering on devices that actually use the damage region info. Instead, merge the dropped buffer's damage region with the new buffer's damage region. Bug: 136158117 Test: Verified correct behavior using a test app provided by John Reck in b/136158117. Test: Verified the Oslo tutorial no longer has broken rendering. Change-Id: I0b069e650e7bed7c1a36e962e681cc5a86700444
Diffstat (limited to 'opengl/libagl/array.cpp')
0 files changed, 0 insertions, 0 deletions