diff options
| author | 2010-10-01 12:15:12 -0700 | |
|---|---|---|
| committer | 2010-10-01 12:15:12 -0700 | |
| commit | 2a471bb690c20533ccf20246be968f77c867c467 (patch) | |
| tree | c5ea338d412566c0013aa7d3f0c7e7b3695caaae /services/surfaceflinger/Layer.cpp | |
| parent | e15119fee611997e71dd711cd476c9fd572d9853 (diff) | |
| parent | 38ed2e39c54a42dda8f00620f960788f569a3698 (diff) | |
Merge "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 1b21a8d05ab7..fb76720084c6 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -271,6 +271,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()); |