summaryrefslogtreecommitdiff
path: root/libs/surfaceflinger/LayerBase.h
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2009-08-11 22:34:02 -0700
committer Mathias Agopian <mathias@google.com> 2009-08-11 23:32:29 -0700
commit5cec4742b3a1d7448bd32ae57cb4cf70b484c64c (patch)
tree9a3d6adb933fd0947ffc643e3d11f432a4baec4b /libs/surfaceflinger/LayerBase.h
parent064dbd076d431a7508b864aa0993cd59ef743e4e (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/LayerBase.h')
-rw-r--r--libs/surfaceflinger/LayerBase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBase.h b/libs/surfaceflinger/LayerBase.h
index 6fb1d1c50cab..65bf55b51b42 100644
--- a/libs/surfaceflinger/LayerBase.h
+++ b/libs/surfaceflinger/LayerBase.h
@@ -335,7 +335,7 @@ public:
sp<LayerBaseClient> getOwner() const;
private:
- virtual sp<SurfaceBuffer> getBuffer();
+ virtual sp<SurfaceBuffer> getBuffer(int usage);
virtual status_t registerBuffers(const ISurface::BufferHeap& buffers);
virtual void postBuffer(ssize_t offset);
virtual void unregisterBuffers();