diff options
author | Glenn Kasten <gkasten@google.com> | 2012-02-09 12:09:25 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-02-09 14:34:15 -0800 |
commit | e8c9ec64f06a0a8aeb95a41523c17b53b6128903 (patch) | |
tree | addaacef7dd63baaa99d9683d2028634347bc2d6 | |
parent | 11d2747fdd34d9259e777a6190ee8076bf8570ea (diff) | |
download | frameworks_native-e8c9ec64f06a0a8aeb95a41523c17b53b6128903.zip frameworks_native-e8c9ec64f06a0a8aeb95a41523c17b53b6128903.tar.gz frameworks_native-e8c9ec64f06a0a8aeb95a41523c17b53b6128903.tar.bz2 |
createSurface getpid() first parameter was removed
Most of these tests in this directory don't currently build,
but test-surface did build incorrectly by bad luck, using the old API.
test-resize still doesn't build, but when the other build errors
are fixed then it will use the right API.
Change-Id: I388d6d59fe0a2328f352214dcdc28839a24043f0
-rw-r--r-- | services/surfaceflinger/tests/resize/resize.cpp | 2 | ||||
-rw-r--r-- | services/surfaceflinger/tests/surface/surface.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/tests/resize/resize.cpp b/services/surfaceflinger/tests/resize/resize.cpp index 56b2a8f..7f3f064 100644 --- a/services/surfaceflinger/tests/resize/resize.cpp +++ b/services/surfaceflinger/tests/resize/resize.cpp @@ -39,7 +39,7 @@ int main(int argc, char** argv) // create a client to surfaceflinger sp<SurfaceComposerClient> client = new SurfaceComposerClient(); - sp<Surface> surface = client->createSurface(getpid(), 0, 160, 240, + sp<Surface> surface = client->createSurface(0, 160, 240, PIXEL_FORMAT_RGB_565); diff --git a/services/surfaceflinger/tests/surface/surface.cpp b/services/surfaceflinger/tests/surface/surface.cpp index 8e1c3fe..9c15f9b 100644 --- a/services/surfaceflinger/tests/surface/surface.cpp +++ b/services/surfaceflinger/tests/surface/surface.cpp @@ -38,7 +38,7 @@ int main(int argc, char** argv) sp<SurfaceComposerClient> client = new SurfaceComposerClient(); sp<SurfaceControl> surfaceControl = client->createSurface( - getpid(), 0, 160, 240, PIXEL_FORMAT_RGB_565); + 0, 160, 240, PIXEL_FORMAT_RGB_565); SurfaceComposerClient::openGlobalTransaction(); surfaceControl->setLayer(100000); SurfaceComposerClient::closeGlobalTransaction(); |