diff options
author | Mathias Agopian <mathias@google.com> | 2010-01-20 13:56:07 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-01-20 14:07:44 -0800 |
commit | ecc99c003b4aca7d7d2f268f927558db4cbddfe1 (patch) | |
tree | ce0d4257ccfca6dad1867d7e7e83ca85475cd51e /libs/surfaceflinger/LayerBuffer.h | |
parent | 42d095aaa54a762ef74d219854aca8e1a7c6f5f6 (diff) | |
download | frameworks_native-ecc99c003b4aca7d7d2f268f927558db4cbddfe1.zip frameworks_native-ecc99c003b4aca7d7d2f268f927558db4cbddfe1.tar.gz frameworks_native-ecc99c003b4aca7d7d2f268f927558db4cbddfe1.tar.bz2 |
part of fix for [2363362] [Sapphire] Corrupted raw picture displayed during snapshot
make sure to fallback properly to software when copybit operation fails.
with this change, the preview image will at least be displayed in b&w
(since GL doesn't support the yuv format). This would also fix
2363506, but that one is now handled more cleanly.
Diffstat (limited to 'libs/surfaceflinger/LayerBuffer.h')
-rw-r--r-- | libs/surfaceflinger/LayerBuffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.h b/libs/surfaceflinger/LayerBuffer.h index 90f83c4..1b31435 100644 --- a/libs/surfaceflinger/LayerBuffer.h +++ b/libs/surfaceflinger/LayerBuffer.h @@ -135,6 +135,7 @@ private: virtual void destroy() { } private: status_t initTempBuffer() const; + void clearTempBufferImage() const; mutable Mutex mBufferSourceLock; sp<Buffer> mBuffer; status_t mStatus; |