Merge "createSurface getpid() first parameter was removed"
This commit is contained in:
commit
d11a1083be
@ -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);
|
||||
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user