diff options
author | 2009-08-11 22:34:02 -0700 | |
---|---|---|
committer | 2009-08-11 23:32:29 -0700 | |
commit | 5cec4742b3a1d7448bd32ae57cb4cf70b484c64c (patch) | |
tree | 9a3d6adb933fd0947ffc643e3d11f432a4baec4b /libs/surfaceflinger/LayerBitmap.h | |
parent | 064dbd076d431a7508b864aa0993cd59ef743e4e (diff) |
second take, hopefully this time it doesn't break one of the builds: "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything."
Diffstat (limited to 'libs/surfaceflinger/LayerBitmap.h')
-rw-r--r-- | libs/surfaceflinger/LayerBitmap.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/surfaceflinger/LayerBitmap.h b/libs/surfaceflinger/LayerBitmap.h index 22525cebdfc5..48ee553e523a 100644 --- a/libs/surfaceflinger/LayerBitmap.h +++ b/libs/surfaceflinger/LayerBitmap.h @@ -58,7 +58,8 @@ public: }; // creates w * h buffer - Buffer(uint32_t w, uint32_t h, PixelFormat format, uint32_t flags = 0); + Buffer(uint32_t w, uint32_t h, PixelFormat format, + uint32_t reqUsage, uint32_t flags = 0); // return status status_t initCheck() const; @@ -81,7 +82,7 @@ private: Buffer& operator = (const Buffer& rhs); const Buffer& operator = (const Buffer& rhs) const; - status_t initSize(uint32_t w, uint32_t h); + status_t initSize(uint32_t w, uint32_t h, uint32_t reqUsage); ssize_t mInitCheck; uint32_t mFlags; @@ -108,7 +109,7 @@ public: status_t setSize(uint32_t w, uint32_t h); - sp<Buffer> allocate(); + sp<Buffer> allocate(uint32_t reqUsage); status_t free(); sp<const Buffer> getBuffer() const { return mBuffer; } |