summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/LayerBase.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2010-10-01 12:15:12 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2010-10-01 12:15:12 -0700
commit2a471bb690c20533ccf20246be968f77c867c467 (patch)
treec5ea338d412566c0013aa7d3f0c7e7b3695caaae /services/surfaceflinger/LayerBase.cpp
parente15119fee611997e71dd711cd476c9fd572d9853 (diff)
parent38ed2e39c54a42dda8f00620f960788f569a3698 (diff)
Merge "refactored screenshot code"
Diffstat (limited to 'services/surfaceflinger/LayerBase.cpp')
-rw-r--r--services/surfaceflinger/LayerBase.cpp6
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