summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramVertex.java
diff options
context:
space:
mode:
authorJack Palevich <jackpal@google.com>2009-12-21 14:47:35 +0800
committerJack Palevich <jackpal@google.com>2009-12-21 14:47:35 +0800
commit21799450ec751fd3c41c7e66e69fefb094b3050b (patch)
tree97bb8d957e78bd77c97cc7547aa16a9ac26d0882 /graphics/java/android/renderscript/ProgramVertex.java
parent0f10c2bd328da35ab8aeb534af2d3f51416b3e2c (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 'graphics/java/android/renderscript/ProgramVertex.java')
0 files changed, 0 insertions, 0 deletions