summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/Layer.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-12-13 18:51:59 -0800
committerMathias Agopian <mathias@google.com>2010-12-14 15:53:39 -0800
commitda9584dc295cc5e6d0b49a97c1e45159249d650b (patch)
tree1d41f25ec921bf3d8bf28c4367db27fcfee9f1e5 /services/surfaceflinger/Layer.h
parentfb88981051118e169d6acfe796f7eab9a827b2e0 (diff)
downloadframeworks_native-da9584dc295cc5e6d0b49a97c1e45159249d650b.zip
frameworks_native-da9584dc295cc5e6d0b49a97c1e45159249d650b.tar.gz
frameworks_native-da9584dc295cc5e6d0b49a97c1e45159249d650b.tar.bz2
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
Diffstat (limited to 'services/surfaceflinger/Layer.h')
-rw-r--r--services/surfaceflinger/Layer.h2
1 files changed, 2 insertions, 0 deletions
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<GraphicBuffer> 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