Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8c9ec64 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

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
parent 11d2747f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -39,7 +39,7 @@ int main(int argc, char** argv)
    // create a client to surfaceflinger
    // create a client to surfaceflinger
    sp<SurfaceComposerClient> client = new SurfaceComposerClient();
    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);
            PIXEL_FORMAT_RGB_565);




+1 −1
Original line number Original line Diff line number Diff line
@@ -38,7 +38,7 @@ int main(int argc, char** argv)
    sp<SurfaceComposerClient> client = new SurfaceComposerClient();
    sp<SurfaceComposerClient> client = new SurfaceComposerClient();
    
    
    sp<SurfaceControl> surfaceControl = client->createSurface(
    sp<SurfaceControl> surfaceControl = client->createSurface(
            getpid(), 0, 160, 240, PIXEL_FORMAT_RGB_565);
            0, 160, 240, PIXEL_FORMAT_RGB_565);
    SurfaceComposerClient::openGlobalTransaction();
    SurfaceComposerClient::openGlobalTransaction();
    surfaceControl->setLayer(100000);
    surfaceControl->setLayer(100000);
    SurfaceComposerClient::closeGlobalTransaction();
    SurfaceComposerClient::closeGlobalTransaction();