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

Commit 3b23af81 authored by Stan Iliev's avatar Stan Iliev Committed by android-build-merger
Browse files

Merge "Improve SurfaceView bounds calculation" into qt-dev

am: 70908f6c

Change-Id: I42ae2c6a6465142f56abfd8b44f9509e9a2c62c5
parents f71d4fd6 70908f6c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -546,7 +546,7 @@ static void android_view_RenderNode_requestPositionUpdates(JNIEnv* env, jobject,
            if (CC_LIKELY(transform.isPureTranslate())) {
                // snap/round the computed bounds, so they match the rounding behavior
                // of the clear done in SurfaceView#draw().
                bounds.snapToPixelBoundaries();
                bounds.snapGeometryToPixelBoundaries(false);
            } else {
                // Conservatively round out so the punched hole (in the ZOrderOnTop = true case)
                // doesn't extend beyond the other window