summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/LayerBase.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-08-10 21:59:56 -0700
committerMathias Agopian <mathias@google.com>2009-08-11 16:12:56 -0700
commit8b76a0ac6fbf07254629ed1ea86af014d5abe050 (patch)
treee492e09655269fff3ca14b6a62f9b07f2d484038 /libs/surfaceflinger/LayerBase.cpp
parentc5ea43920919eeaec4ec0686de9fa3d034d82337 (diff)
downloadframeworks_base-8b76a0ac6fbf07254629ed1ea86af014d5abe050.zip
frameworks_base-8b76a0ac6fbf07254629ed1ea86af014d5abe050.tar.gz
frameworks_base-8b76a0ac6fbf07254629ed1ea86af014d5abe050.tar.bz2
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.
This change makes SurfaceHolder.setType(GPU) obsolete (it's now ignored). Added an API to android_native_window_t to allow extending the functionality without ever breaking binary compatibility. This is used to implement the new set_usage() API. This API needs to be called by software renderers because the default is to use usage flags suitable for h/w.
Diffstat (limited to 'libs/surfaceflinger/LayerBase.cpp')
-rw-r--r--libs/surfaceflinger/LayerBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBase.cpp b/libs/surfaceflinger/LayerBase.cpp
index fbce73d..419574c 100644
--- a/libs/surfaceflinger/LayerBase.cpp
+++ b/libs/surfaceflinger/LayerBase.cpp
@@ -759,7 +759,7 @@ status_t LayerBaseClient::Surface::onTransact(
return BnSurface::onTransact(code, data, reply, flags);
}
-sp<SurfaceBuffer> LayerBaseClient::Surface::getBuffer()
+sp<SurfaceBuffer> LayerBaseClient::Surface::getBuffer(int)
{
return NULL;
}