summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/tests/resize
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-08-24 20:00:51 -0700
committerJeff Brown <jeffbrown@google.com>2012-08-27 14:40:17 -0700
commit9d4e3d2f42e93e2d12bacabe97d307d30c3c20dd (patch)
tree3db010ef45a3793c5b09887ae321b4a8095a5001 /services/surfaceflinger/tests/resize
parent225c66a48cdc3acef21ee380dc134449749d3cb3 (diff)
downloadframeworks_native-9d4e3d2f42e93e2d12bacabe97d307d30c3c20dd.zip
frameworks_native-9d4e3d2f42e93e2d12bacabe97d307d30c3c20dd.tar.gz
frameworks_native-9d4e3d2f42e93e2d12bacabe97d307d30c3c20dd.tar.bz2
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 'services/surfaceflinger/tests/resize')
-rw-r--r--services/surfaceflinger/tests/resize/resize.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/tests/resize/resize.cpp b/services/surfaceflinger/tests/resize/resize.cpp
index c143b3d..d61ea70 100644
--- a/services/surfaceflinger/tests/resize/resize.cpp
+++ b/services/surfaceflinger/tests/resize/resize.cpp
@@ -38,8 +38,8 @@ int main(int argc, char** argv)
// create a client to surfaceflinger
sp<SurfaceComposerClient> client = new SurfaceComposerClient();
- sp<Surface> surface = client->createSurface(0, 160, 240,
- PIXEL_FORMAT_RGB_565);
+ sp<Surface> surface = client->createSurface(String8("resize"),
+ 160, 240, PIXEL_FORMAT_RGB_565, 0);
SurfaceComposerClient::openGlobalTransaction();