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

Commit 9195f75d authored by Romain Guy's avatar Romain Guy Committed by Android (Google) Code Review
Browse files

Merge "Fix rendering issue with layers."

parents 26e37349 5ec9924d
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -240,14 +240,14 @@ bool OpenGLRenderer::restoreSnapshot() {
    mSaveCount--;
    mSnapshot = previous;

    if (restoreLayer) {
        composeLayer(current, previous);
    }

    if (restoreClip) {
        dirtyClip();
    }

    if (restoreLayer) {
        composeLayer(current, previous);
    }

    return restoreClip;
}

@@ -447,6 +447,7 @@ bool OpenGLRenderer::createFboLayer(Layer* layer, Rect& bounds, sp<Snapshot> sna
    inverse.mapRect(clip);
    clip.snapToPixelBoundaries();
    clip.intersect(bounds);
    clip.translate(-bounds.left, -bounds.top);

    snapshot->flags |= Snapshot::kFlagIsFboLayer;
    snapshot->fbo = layer->fbo;
+2 −0
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.test.hwui">

    <uses-permission android:name="android.permission.INTERNET" />    
    
    <application
        android:label="HwUi"
        android:hardwareAccelerated="true">