From 9d4e3d2f42e93e2d12bacabe97d307d30c3c20dd Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Fri, 24 Aug 2012 20:00:51 -0700 Subject: Banish DisplayID from the SurfaceFlinger API. Use only display tokens in the API to refer to new displays. Don't require the caller to specify the display when creating a surface (since in general a surface could be shown on any display). This is intended to be a minimum change just to update the API. Note that SurfaceFlinger still uses DisplayID in a few places internally that might cause some features not to work properly when there are multiple displays (LayerScreenshot, for example). Change-Id: I3d91eec2da406eefd97bcd53655d403ad865a7e6 --- include/gui/ISurfaceComposerClient.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/gui/ISurfaceComposerClient.h') diff --git a/include/gui/ISurfaceComposerClient.h b/include/gui/ISurfaceComposerClient.h index 259c1dff84..39cf090290 100644 --- a/include/gui/ISurfaceComposerClient.h +++ b/include/gui/ISurfaceComposerClient.h @@ -33,6 +33,7 @@ namespace android { // ---------------------------------------------------------------------------- +// TODO: Remove this declaration, it is only used internally by SurfaceFlinger. typedef int32_t DisplayID; // ---------------------------------------------------------------------------- @@ -70,7 +71,7 @@ public: * Requires ACCESS_SURFACE_FLINGER permission */ virtual sp createSurface(surface_data_t* data, - const String8& name, DisplayID display, uint32_t w, uint32_t h, + const String8& name, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags) = 0; /* -- cgit v1.2.3-59-g8ed1b