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

Commit 3f375e0f authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Send GPU_LOAD_UP hint when blurring

Bug: 411189648
Flag: android.view.flags.notify_gpu_load_up
Test: perfetto
Change-Id: If764dcffdb31048d3d30a8d70b473afe983cbd4c
parent 30ecffec
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -145,9 +145,14 @@ constructor(
            if (shouldScaleWithTransaction()) {
                builder.withBackgroundBlurScale(scale)
            }
            if (!earlyWakeupEnabled && lastAppliedBlur == 0 && radius != 0) {
            if (lastAppliedBlur == 0 && radius != 0) {
                Trace.instantForTrack(TRACE_TAG_APP, TRACK_NAME, "notifyRendererForGpuLoadUp")
                viewRootImpl.notifyRendererForGpuLoadUp("applyBlur")

                if (!earlyWakeupEnabled) {
                    earlyWakeupStart(builder, "eEarlyWakeup (applyBlur)")
                }
            }
            if (
                earlyWakeupEnabled &&
                    lastAppliedBlur != 0 &&