diff options
| author | 2012-02-23 21:23:02 -0800 | |
|---|---|---|
| committer | 2012-02-23 21:23:02 -0800 | |
| commit | 2d77b5332ac4ef5b252fbd8f56a195e0fce03292 (patch) | |
| tree | 9125d58822e502d1259b109a3f8d72e3f8941e2c /services/surfaceflinger/SurfaceFlinger.cpp | |
| parent | edb948b877504d19d0e603a77d87297f2c834c4f (diff) | |
| parent | 6ea851fadf16b98d76d9afbee1a9cbb015a44034 (diff) | |
Merge changes I97807db6,I7d350bc0
* changes:
workaround for an issue where the screen would flicker sometimes
fix an issue in SF where we could miss some updates
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
| -rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 9e3f54839574..9d821dc47203 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -1000,6 +1000,12 @@ void SurfaceFlinger::composeSurfaces(const Region& dirty) drawWormhole(); } + // FIXME: workaroud for b/6020860 + glEnable(GL_SCISSOR_TEST); + glScissor(0,0,0,0); + glClear(GL_COLOR_BUFFER_BIT); + // end-workaround + /* * and then, render the layers targeted at the framebuffer */ @@ -1776,6 +1782,10 @@ status_t SurfaceFlinger::onTransact( setTransactionFlags(eTransactionNeeded|eTraversalNeeded); return NO_ERROR; } + case 1006:{ // send empty update + signalRefresh(); + return NO_ERROR; + } case 1008: // toggle use of hw composer n = data.readInt32(); mDebugDisableHWC = n ? 1 : 0; |