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

Commit e13b58e1 authored by Robert Carr's avatar Robert Carr
Browse files

Use new SurfaceFlinger transaction API.

For now we reimplement global transactions in the Java side
JNI layer.

Bug: 64815723
Bug: 64816140
Bug: 64815766
Test: Existing tests pass. go/wm-smoke
Change-Id: I6c0a7b5e65b1b6cc844ac61f3269629af60a4244
parent 34e83d28
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -260,9 +260,9 @@ status_t BootAnimation::readyToRun() {
    sp<SurfaceControl> control = session()->createSurface(String8("BootAnimation"),
            dinfo.w, dinfo.h, PIXEL_FORMAT_RGB_565);

    SurfaceComposerClient::openGlobalTransaction();
    control->setLayer(0x40000000);
    SurfaceComposerClient::closeGlobalTransaction();
    SurfaceComposerClient::Transaction t;
    t.setLayer(control, 0x40000000)
        .apply();

    sp<Surface> s = control->getSurface();

+409 −129

File changed.

Preview size limit exceeded, changes collapsed.

+175 −115

File changed.

Preview size limit exceeded, changes collapsed.

+4 −4
Original line number Diff line number Diff line
@@ -81,10 +81,10 @@ void TestContext::createWindowSurface() {
    mSurfaceControl = mSurfaceComposerClient->createSurface(String8("HwuiTest"),
            gDisplay.w, gDisplay.h, PIXEL_FORMAT_RGBX_8888);

    SurfaceComposerClient::openGlobalTransaction();
    mSurfaceControl->setLayer(0x7FFFFFF);
    mSurfaceControl->show();
    SurfaceComposerClient::closeGlobalTransaction();
    SurfaceComposerClient::Transaction t;
    t.setLayer(mSurfaceControl, 0x7FFFFFF)
            .show(mSurfaceControl)
            .apply();
    mSurface = mSurfaceControl->getSurface();
}

+37 −65

File changed.

Preview size limit exceeded, changes collapsed.

Loading