OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d143ee
)
workaround for an issue where the screen would flicker sometimes
author
Mathias Agopian
<mathias@google.com>
Fri, 24 Feb 2012 05:20:01 +0000
(21:20 -0800)
committer
Mathias Agopian
<mathias@google.com>
Fri, 24 Feb 2012 05:20:01 +0000
(21:20 -0800)
bug:
6020860
Change-Id: I97807db66b66c5f4dcbed0df79d5d257cfc7c0bd
services/surfaceflinger/SurfaceFlinger.cpp
patch
|
blob
|
history
diff --git
a/services/surfaceflinger/SurfaceFlinger.cpp
b/services/surfaceflinger/SurfaceFlinger.cpp
index
6852113
..
9d821dc
100644
(file)
--- 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
*/