summaryrefslogtreecommitdiff
path: root/libs/rs/rsScriptC.cpp
diff options
context:
space:
mode:
author Jack Palevich <jackpal@google.com> 2009-12-21 14:47:35 +0800
committer Jack Palevich <jackpal@google.com> 2009-12-22 11:45:31 +0800
commit49c9a3a3d4e34aa3ff824e8f4536aa92c6bdc967 (patch)
tree4031656f17122ddba889497129e3b057b3bacf85 /libs/rs/rsScriptC.cpp
parent11b97c50e6fb6d723e88eac3c125b60ca42184f7 (diff)
Fix bug 2325244 screen turns black for a brief period of time
The problem was a black first frame when creating a surface, or a garbage frame when the surface was resized. The cause was lack of synchronization between the render thread and the UI thread. The UI thread would typically return before the render thread had a chance to draw its first frame. The fix was to make the UI thread wait until at least one frame had been rendered by the rendering thread. The waiting is done in the surfaceChanged method because we know that surfaceChanged will be called in both the surface created and surface changed cases.
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
0 files changed, 0 insertions, 0 deletions