diff options
| author | 2010-10-04 20:06:51 -0700 | |
|---|---|---|
| committer | 2010-10-04 20:06:51 -0700 | |
| commit | bba3b8efbe7dc9dd6fa326103ef7ddefc28d5ba5 (patch) | |
| tree | 5da8b6283591ad47c1edca60a110fb3837a2459b /services/surfaceflinger/Layer.cpp | |
| parent | 9fa7926beaf6c7fe32159a7e41fae9f618ec7504 (diff) | |
| parent | 19058877df9bf94f197a72855f810f7f6bf8d068 (diff) | |
am 19058877: Merge "refactored screenshot code" into gingerbread
Merge commit '19058877df9bf94f197a72855f810f7f6bf8d068' into gingerbread-plus-aosp
* commit '19058877df9bf94f197a72855f810f7f6bf8d068':
refactored screenshot code
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
| -rw-r--r-- | services/surfaceflinger/Layer.cpp | 11 |
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()); |