Merge "createSurface getpid() first parameter was removed"

This commit is contained in:
Glenn Kasten 2012-02-21 07:24:16 -08:00 committed by Android (Google) Code Review
commit d11a1083be
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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();