OSDN Git Service

fix another bug where screenshots could end-up all black
authorMathias Agopian <mathias@google.com>
Wed, 10 Apr 2013 23:27:17 +0000 (16:27 -0700)
committerMathias Agopian <mathias@google.com>
Wed, 10 Apr 2013 23:27:17 +0000 (16:27 -0700)
commit9eb1f0558b5fc78920602afe7bcfa3115bb1f6be
tree2bcc946139e627de49b4e67121e7f5d5ce9c3174
parent1df59c93fea8bec21b8084c34aface086f1e0896
fix another bug where screenshots could end-up all black

SF transactions were always handled on VSYNC which allowed
the screenshot to sneak-in between closing the transaction
and vsync (before it's latched), resulting in a screenshot
with the previous state.

we now always force transactions to happen immediately
before screenhots.

Bug: 7552304
Change-Id: I0afc86b7e8366173daff5b9988bbb4d2a0f43860
services/surfaceflinger/MessageQueue.cpp
services/surfaceflinger/MessageQueue.h
services/surfaceflinger/SurfaceFlinger.cpp