diff options
author | Mathias Agopian <mathias@google.com> | 2009-10-29 18:29:30 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-10-30 14:48:50 -0700 |
commit | 863e5fdde858d732ac76320369b6304599f23b4c (patch) | |
tree | b8d374db3d255ee24a6884167238ad8955bd722b /libs/surfaceflinger/LayerBuffer.h | |
parent | df2d92940550bc68c3c237937bce7ac16d9fa91b (diff) | |
download | frameworks_native-863e5fdde858d732ac76320369b6304599f23b4c.zip frameworks_native-863e5fdde858d732ac76320369b6304599f23b4c.tar.gz frameworks_native-863e5fdde858d732ac76320369b6304599f23b4c.tar.bz2 |
fix[2222341] Soft reset while going back from camcorder settings
add a way to convert a mapped "pushbuffer" buffer to a gralloc handle
which then can be safely used by surfaceflinger, without including
gralloc_priv.h
Diffstat (limited to 'libs/surfaceflinger/LayerBuffer.h')
-rw-r--r-- | libs/surfaceflinger/LayerBuffer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.h b/libs/surfaceflinger/LayerBuffer.h index 438b711..47482f4 100644 --- a/libs/surfaceflinger/LayerBuffer.h +++ b/libs/surfaceflinger/LayerBuffer.h @@ -91,6 +91,11 @@ private: copybit_rect_t crop; }; + static gralloc_module_t const* sGrallocModule; + static gralloc_module_t const* getGrallocModule() { + return sGrallocModule; + } + class Buffer : public LightRefBase<Buffer> { public: Buffer(const ISurface::BufferHeap& buffers, ssize_t offset); |