diff options
| author | 2012-08-24 20:00:51 -0700 | |
|---|---|---|
| committer | 2012-08-27 14:40:17 -0700 | |
| commit | 9d4e3d2f42e93e2d12bacabe97d307d30c3c20dd (patch) | |
| tree | 3db010ef45a3793c5b09887ae321b4a8095a5001 /libs/gui/ISurfaceComposerClient.cpp | |
| parent | 225c66a48cdc3acef21ee380dc134449749d3cb3 (diff) | |
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
Diffstat (limited to 'libs/gui/ISurfaceComposerClient.cpp')
| -rw-r--r-- | libs/gui/ISurfaceComposerClient.cpp | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/libs/gui/ISurfaceComposerClient.cpp b/libs/gui/ISurfaceComposerClient.cpp index ca9ed5b545..8f7bc052cd 100644 --- a/libs/gui/ISurfaceComposerClient.cpp +++ b/libs/gui/ISurfaceComposerClient.cpp @@ -52,7 +52,6 @@ public:      virtual sp<ISurface> createSurface( surface_data_t* params,                                          const String8& name, -                                        DisplayID display,                                          uint32_t w,                                          uint32_t h,                                          PixelFormat format, @@ -61,7 +60,6 @@ public:          Parcel data, reply;          data.writeInterfaceToken(ISurfaceComposerClient::getInterfaceDescriptor());          data.writeString8(name); -        data.writeInt32(display);          data.writeInt32(w);          data.writeInt32(h);          data.writeInt32(format); @@ -93,12 +91,11 @@ status_t BnSurfaceComposerClient::onTransact(              CHECK_INTERFACE(ISurfaceComposerClient, data, reply);              surface_data_t params;              String8 name = data.readString8(); -            DisplayID display = data.readInt32();              uint32_t w = data.readInt32();              uint32_t h = data.readInt32();              PixelFormat format = data.readInt32();              uint32_t flags = data.readInt32(); -            sp<ISurface> s = createSurface(¶ms, name, display, w, h, +            sp<ISurface> s = createSurface(¶ms, name, w, h,                      format, flags);              params.writeToParcel(reply);              reply->writeStrongBinder(s->asBinder()); |