Closed Bug 1804707 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 37406 - Use direct compositing for canvases rendered on the CPU

Categories

(Core :: Layout: Images, Video, and HTML Frames, task, P4)

task

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 37406 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/37406
Details from upstream follow.

Justin Novosad <junov@chromium.org> wrote:

Use direct compositing for canvases rendered on the CPU

Before this CL, we already had the plumbing for presenting CPU-rendered canvases via GpuMemoryBuffer for direct compositing. That code path was originally implemented to support LowLatency mode. With this change, we exercise the GpuMemoryBuffer code path for "regular" latency canvases. This accelerates compositing, especially for pages that have many canvases.

With this change, on MacOS, the MotionMark Images test runs about 50% faster, and close to 2x faster with the ANGLE metal backend enabled.

Bug:1363627

Change-Id: I25b9e3105773fee84a1fc88432ed6640dac4c976
Reviewed-on: https://chromium-review.googlesource.com/4081383
WPT-Export-Revision: 1152b47b86d69d4876a74c8d4a568ff729ec6762

Component: web-platform-tests → Layout: Images, Video, and HTML Frames
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 4 tests

Status Summary

Firefox

PASS: 4

Chrome

PASS: 4

Safari

PASS: 4

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3c9bef7011bb [wpt PR 37406] - Use direct compositing for canvases rendered on the CPU, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
You need to log in before you can comment on or make changes to this bug.