diff options
author | Mathias Agopian <mathias@google.com> | 2010-05-21 17:24:35 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-05-24 18:26:01 -0700 |
commit | 2be352adab7f11646fda7c0240e496bbb37f7bd1 (patch) | |
tree | e7a168546a256cd4f7c57261690796cf527ae8a2 /include/surfaceflinger/ISurface.h | |
parent | 57d89899c9fb978a1c097f298aa94c5db1f61bb6 (diff) | |
download | frameworks_base-2be352adab7f11646fda7c0240e496bbb37f7bd1.zip frameworks_base-2be352adab7f11646fda7c0240e496bbb37f7bd1.tar.gz frameworks_base-2be352adab7f11646fda7c0240e496bbb37f7bd1.tar.bz2 |
added the notion of fixed-size buffers
the new native_window_set_buffers_geometry allows
to specify a size and format for all buffers to be
dequeued. the buffer will be scalled to the window's
size.
Change-Id: I2c378b85c88d29cdd827a5f319d5c704d79ba381
Diffstat (limited to 'include/surfaceflinger/ISurface.h')
-rw-r--r-- | include/surfaceflinger/ISurface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/surfaceflinger/ISurface.h b/include/surfaceflinger/ISurface.h index 9476686..18e7950 100644 --- a/include/surfaceflinger/ISurface.h +++ b/include/surfaceflinger/ISurface.h @@ -53,7 +53,8 @@ protected: public: DECLARE_META_INTERFACE(Surface); - virtual sp<GraphicBuffer> requestBuffer(int bufferIdx, int usage) = 0; + virtual sp<GraphicBuffer> requestBuffer(int bufferIdx, + uint32_t w, uint32_t h, uint32_t format, uint32_t usage) = 0; virtual status_t setBufferCount(int bufferCount) = 0; class BufferHeap { |