diff options
| author | 2010-09-29 13:02:36 -0700 | |
|---|---|---|
| committer | 2010-09-29 16:55:15 -0700 | |
| commit | 74c40c0a273dbfd7d10617c4cc1b0c066bfc812e (patch) | |
| tree | f2f723f2f2d83ada036e0866d37806e8665bf561 /services/surfaceflinger/LayerBase.cpp | |
| parent | e0d26fbac81fa28a390b80890cd87b67d1c9e0ef (diff) | |
refactored screenshot code
the core screenshot function now can capture the screen at any lower resolution
performing bilinear filtering.
we also now have some client code to interface with the screenshot service.
it's now possible to request a screenshot at a lower resolution.
Change-Id: I5a3b0e431421800e3aad601d9af8f94adffbc71f
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 3d049a7961..14191cbc21 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 |