From df37b62c62f8efd3b5a433f9b4d40d30cec13a31 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 10 Aug 2009 21:59:56 -0700 Subject: 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. --- libs/surfaceflinger/LayerBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/surfaceflinger/LayerBase.cpp') diff --git a/libs/surfaceflinger/LayerBase.cpp b/libs/surfaceflinger/LayerBase.cpp index fbce73ddd3..419574c7de 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 LayerBaseClient::Surface::getBuffer() +sp LayerBaseClient::Surface::getBuffer(int) { return NULL; } -- cgit v1.2.3-59-g8ed1b