diff options
| author | 2010-10-04 20:06:51 -0700 | |
|---|---|---|
| committer | 2010-10-04 20:06:51 -0700 | |
| commit | bba3b8efbe7dc9dd6fa326103ef7ddefc28d5ba5 (patch) | |
| tree | 5da8b6283591ad47c1edca60a110fb3837a2459b /services/surfaceflinger/LayerBuffer.cpp | |
| parent | 9fa7926beaf6c7fe32159a7e41fae9f618ec7504 (diff) | |
| parent | 19058877df9bf94f197a72855f810f7f6bf8d068 (diff) | |
am 19058877: Merge "refactored screenshot code" into gingerbread
Merge commit '19058877df9bf94f197a72855f810f7f6bf8d068' into gingerbread-plus-aosp
* commit '19058877df9bf94f197a72855f810f7f6bf8d068':
refactored screenshot code
Diffstat (limited to 'services/surfaceflinger/LayerBuffer.cpp')
| -rw-r--r-- | services/surfaceflinger/LayerBuffer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/services/surfaceflinger/LayerBuffer.cpp b/services/surfaceflinger/LayerBuffer.cpp index fdf9abc81ada..c060895bf07b 100644 --- a/services/surfaceflinger/LayerBuffer.cpp +++ b/services/surfaceflinger/LayerBuffer.cpp @@ -132,6 +132,12 @@ void LayerBuffer::unlockPageFlip(const Transform& planeTransform, LayerBase::unlockPageFlip(planeTransform, outDirtyRegion); } +void LayerBuffer::drawForSreenShot() const +{ + const DisplayHardware& hw(graphicPlane(0).displayHardware()); + clearWithOpenGL( Region(hw.bounds()) ); +} + void LayerBuffer::onDraw(const Region& clip) const { sp<Source> source(getSource()); |