diff options
| author | 2010-05-21 17:24:35 -0700 | |
|---|---|---|
| committer | 2010-05-24 18:26:01 -0700 | |
| commit | 2be352adab7f11646fda7c0240e496bbb37f7bd1 (patch) | |
| tree | e7a168546a256cd4f7c57261690796cf527ae8a2 /libs/surfaceflinger/LayerBase.h | |
| parent | 57d89899c9fb978a1c097f298aa94c5db1f61bb6 (diff) | |
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 'libs/surfaceflinger/LayerBase.h')
| -rw-r--r-- | libs/surfaceflinger/LayerBase.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBase.h b/libs/surfaceflinger/LayerBase.h index 53b848f14366..569b0ff2e58c 100644 --- a/libs/surfaceflinger/LayerBase.h +++ b/libs/surfaceflinger/LayerBase.h @@ -301,7 +301,8 @@ public: sp<LayerBaseClient> getOwner() const; private: - virtual sp<GraphicBuffer> requestBuffer(int index, int usage); + virtual sp<GraphicBuffer> requestBuffer(int bufferIdx, + uint32_t w, uint32_t h, uint32_t format, uint32_t usage); virtual status_t setBufferCount(int bufferCount); virtual status_t registerBuffers(const ISurface::BufferHeap& buffers); |