summaryrefslogtreecommitdiff
path: root/opengl/java/android/opengl/Texture.java
diff options
context:
space:
mode:
authorJack Palevich <jackpal@google.com>2009-10-09 17:37:50 -0700
committerJack Palevich <jackpal@google.com>2009-10-09 17:37:50 -0700
commit61a6e689188cd8743905e4f7b10440c7e50823f3 (patch)
tree0195ae586007e6915def0b1478e42515d67cec0d /opengl/java/android/opengl/Texture.java
parent2d295a9601315a2610a2cb759ed9a4f787e7d4b5 (diff)
Prevent transparent region from getting out of sync with Surface Flinger
The ViewRoot is responsible for calculating the current view's surface's transparent region and reporting this to the window server, which in turn notifies Surface Flinger. To minimize cross-process traffic, ViewRoot keeps track of the most recent transparent region that it has reported to the window server, and only sends updates when the region shape changes. ViewRoot is effectively shadowing the internal state of the window server, and usually this works fine, because ViewRoot is usually the only thing that changes this value. But when the surface is recreated, the window server resets the transparent region to empty. So in order to properly update the window server we need to reset our copy of its state to empty too. Fixes issue #2133090: GL Gears runs at half speed in some cases
Diffstat (limited to 'opengl/java/android/opengl/Texture.java')
0 files changed, 0 insertions, 0 deletions