diff options
| author | Rebecca Schultz Zavin <rebecca@android.com> | 2009-09-01 23:06:45 -0700 |
|---|---|---|
| committer | Rebecca Schultz Zavin <rebecca@android.com> | 2009-09-02 15:57:42 -0700 |
| commit | c8546781ff6fa26b3a7f2d1483db363f299a3898 (patch) | |
| tree | fc5fb4170153e3d0fc71a8b8f1753d6fb1a7a998 /libs/surfaceflinger/LayerBuffer.cpp | |
| parent | 5e2a385c0d95f4a99dd8c562c6d2d79aa8546030 (diff) | |
| download | frameworks_base-c8546781ff6fa26b3a7f2d1483db363f299a3898.zip frameworks_base-c8546781ff6fa26b3a7f2d1483db363f299a3898.tar.gz frameworks_base-c8546781ff6fa26b3a7f2d1483db363f299a3898.tar.bz2 | |
Add colorkey to gl clear operation
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'libs/surfaceflinger/LayerBuffer.cpp')
| -rw-r--r-- | libs/surfaceflinger/LayerBuffer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.cpp b/libs/surfaceflinger/LayerBuffer.cpp index bd6d472..8a55a3f 100644 --- a/libs/surfaceflinger/LayerBuffer.cpp +++ b/libs/surfaceflinger/LayerBuffer.cpp @@ -600,7 +600,11 @@ LayerBuffer::OverlaySource::~OverlaySource() void LayerBuffer::OverlaySource::onDraw(const Region& clip) const { - mLayer.clearWithOpenGL(clip); + GLclampx color = 0x000018; //dark blue + GLclampx red = 0; + GLclampx green = 0; + GLclampx blue = 0x1818; + mLayer.clearWithOpenGL(clip, red, green, blue, 0); } void LayerBuffer::OverlaySource::onTransaction(uint32_t flags) |
