From d2832fb4154771e42f7a4fdb8286ac85827ebe9d Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 20 Jan 2010 13:56:07 -0800 Subject: 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. --- libs/surfaceflinger/LayerBuffer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/surfaceflinger/LayerBuffer.h') diff --git a/libs/surfaceflinger/LayerBuffer.h b/libs/surfaceflinger/LayerBuffer.h index 90f83c4c12cc..1b3143555a64 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 mBuffer; status_t mStatus; -- cgit v1.2.3-59-g8ed1b