diff options
author | Mathias Agopian <mathias@google.com> | 2010-09-29 13:02:36 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-10-04 17:36:17 -0700 |
commit | df85c455c34a920d22a8e3f7459a1cc615efcd27 (patch) | |
tree | 5ad42218a1f355354a8a77b6a97a8624736aa286 /services/surfaceflinger/LayerBase.cpp | |
parent | f67f0acc677c20516c0f8f7dfbdf8b75bb0c2f52 (diff) | |
download | frameworks_native-df85c455c34a920d22a8e3f7459a1cc615efcd27.zip frameworks_native-df85c455c34a920d22a8e3f7459a1cc615efcd27.tar.gz frameworks_native-df85c455c34a920d22a8e3f7459a1cc615efcd27.tar.bz2 |
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: I33689bba98507ab928d0898b21596d0d2fe4b953
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 6fc5010..758b408 100644 --- a/services/surfaceflinger/LayerBase.cpp +++ b/services/surfaceflinger/LayerBase.cpp @@ -317,6 +317,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 |