summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2010-10-04 20:04:42 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2010-10-04 20:04:42 -0700
commit19058877df9bf94f197a72855f810f7f6bf8d068 (patch)
treef88763bcad2b9d97f19538bb0a4f40e83c4f8a8a /services/surfaceflinger/Layer.cpp
parentb9aacfdfb014cc0299f7999d2a8940cd60a4cc59 (diff)
parent597c7f67b5f2491c6098a1de241a3f0fd274688a (diff)
Merge "refactored screenshot code" into gingerbread
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 695cbfa0a80d..a060d316ddc9 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -214,6 +214,17 @@ slowpath:
}
}
+void Layer::drawForSreenShot() const
+{
+ bool currentFixedSize = mFixedSize;
+ bool currentBlending = mNeedsBlending;
+ const_cast<Layer*>(this)->mFixedSize = false;
+ const_cast<Layer*>(this)->mFixedSize = true;
+ LayerBase::drawForSreenShot();
+ const_cast<Layer*>(this)->mFixedSize = currentFixedSize;
+ const_cast<Layer*>(this)->mNeedsBlending = currentBlending;
+}
+
void Layer::onDraw(const Region& clip) const
{
Texture tex(mBufferManager.getActiveTexture());