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

Commit 36a35e36 authored by Chris Craik's avatar Chris Craik
Browse files

Fix layer shader to store layer pointer

bug:19419672

Change-Id: I4277348ceab41fbf45a107a8b21f64e2b4af23e0
parent 6c770900
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -685,7 +685,7 @@ bool tryStoreLayer(Caches& caches, const SkShader& shader, const Matrix4& modelV
    }

    description->hasBitmap = true;

    outData->layer = layer;
    outData->bitmapSampler = (*textureUnit)++;

    const float width = layer->getWidth();
+3 −3
Original line number Diff line number Diff line
@@ -14,13 +14,13 @@
            android:id="@+id/clickable1"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:background="?android:attr/selectableItemBackground"/>
            android:background="?android:attr/selectableItemBackgroundBorderless"/>
        <View
            android:id="@+id/clickable2"
            android:translationX="50dp"
            android:translationY="10dp"
            android:layout_width="150dp"
            android:layout_height="100dp"
            android:background="?android:attr/selectableItemBackground"/>
            android:background="?android:attr/selectableItemBackgroundBorderless"/>
    </FrameLayout>
</LinearLayout>