From da9584dc295cc5e6d0b49a97c1e45159249d650b Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 13 Dec 2010 18:51:59 -0800 Subject: fix [3223749] media server crashes when switching mode from video capture to still image capture there was an issue were in some situation SF would call prepare() on hwc with a NULL handle and never call prepare again. in this situation, we onw set the SKIP flag to make sure that hwc won't process this layer and as soon as we receive our first buffer we trigger a recompute of the visible regions which will end-up calling prepare() again. Change-Id: I6b400b2df79712408b9315a9859290c7fcb1609e --- services/surfaceflinger/Layer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'services/surfaceflinger/Layer.h') diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h index 30021d3..c367a8d 100644 --- a/services/surfaceflinger/Layer.h +++ b/services/surfaceflinger/Layer.h @@ -188,6 +188,8 @@ private: size_t getActiveBufferIndex() const; // return the active buffer sp getActiveBuffer() const; + // return wether we have an active buffer + bool hasActiveBuffer() const; // return the active texture (or fail-over) Texture getActiveTexture() const; // frees resources associated with all buffers -- cgit v1.1