diff options
| author | 2010-10-01 12:15:12 -0700 | |
|---|---|---|
| committer | 2010-10-01 12:15:12 -0700 | |
| commit | 2a471bb690c20533ccf20246be968f77c867c467 (patch) | |
| tree | c5ea338d412566c0013aa7d3f0c7e7b3695caaae /services/surfaceflinger/LayerBase.cpp | |
| parent | e15119fee611997e71dd711cd476c9fd572d9853 (diff) | |
| parent | 38ed2e39c54a42dda8f00620f960788f569a3698 (diff) | |
Merge "refactored screenshot code"
Diffstat (limited to 'services/surfaceflinger/LayerBase.cpp')
| -rw-r--r-- | services/surfaceflinger/LayerBase.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/services/surfaceflinger/LayerBase.cpp b/services/surfaceflinger/LayerBase.cpp index 3d049a79616f..14191cbc21bd 100644 --- a/services/surfaceflinger/LayerBase.cpp +++ b/services/surfaceflinger/LayerBase.cpp @@ -326,6 +326,12 @@ void LayerBase::draw(const Region& clip) const onDraw(clip); } +void LayerBase::drawForSreenShot() const +{ + const DisplayHardware& hw(graphicPlane(0).displayHardware()); + onDraw( Region(hw.bounds()) ); +} + void LayerBase::clearWithOpenGL(const Region& clip, GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) const |