diff options
| author | Rebecca Schultz Zavin <rebecca@android.com> | 2009-07-20 21:18:04 -0700 |
|---|---|---|
| committer | Rebecca Schultz Zavin <rebecca@android.com> | 2009-07-21 11:07:23 -0700 |
| commit | 7ac5e698b216a1b1af97405b43adf2ad5bc40e7d (patch) | |
| tree | fa2d7744aa16220e1dac8cb56e3effded22590a6 /libs/surfaceflinger/LayerBuffer.cpp | |
| parent | 2f140bdb8a22a6328023a5cd7d19ecd57e6662d9 (diff) | |
| download | frameworks_base-7ac5e698b216a1b1af97405b43adf2ad5bc40e7d.zip frameworks_base-7ac5e698b216a1b1af97405b43adf2ad5bc40e7d.tar.gz frameworks_base-7ac5e698b216a1b1af97405b43adf2ad5bc40e7d.tar.bz2 | |
Fix hardware overlay so all changes are commited when done.
Diffstat (limited to 'libs/surfaceflinger/LayerBuffer.cpp')
| -rw-r--r-- | libs/surfaceflinger/LayerBuffer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.cpp b/libs/surfaceflinger/LayerBuffer.cpp index a088b0a..2d949a0 100644 --- a/libs/surfaceflinger/LayerBuffer.cpp +++ b/libs/surfaceflinger/LayerBuffer.cpp @@ -594,6 +594,11 @@ LayerBuffer::OverlaySource::~OverlaySource() } } +void LayerBuffer::OverlaySource::onDraw(const Region& clip) const +{ + mLayer.clearWithOpenGL(clip); +} + void LayerBuffer::OverlaySource::onTransaction(uint32_t flags) { const Layer::State& front(mLayer.drawingState()); @@ -624,6 +629,7 @@ void LayerBuffer::OverlaySource::onVisibilityResolved( overlay_dev->setPosition(overlay_dev, mOverlay, x,y,w,h); overlay_dev->setParameter(overlay_dev, mOverlay, OVERLAY_TRANSFORM, mLayer.getOrientation()); + overlay_dev->commit(overlay_dev, mOverlay); } } } |
