Closed Bug 2076226 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63020 - webgl: Present the canvas after blitFramebuffer and clearBuffer

Categories

(Core :: Graphics: CanvasWebGL, task, P4)

task

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

mxmgorin <102797145+mxmgorin@users.noreply.github.com> wrote:

webgl: Present the canvas after blitFramebuffer and clearBuffer

This makes blitFramebuffer and the clearBuffer* calls mark the canvas for presentation when they write to the drawing buffer. Previously, only clear and the draw calls did this, so a page that renders into a framebuffer and presents it with a single blit, left the canvas blank even though Draw Operations trigger presentation.

Testing: Added two reftests, /webgl/blitFramebuffer-presents-drawing-buffer.html and /webgl/clearBufferfv-presents-drawing-buffer.html; both fail without this change.
Found while running Ruffle.
Reviewed in servo/servo#48473

Component: web-platform-tests → Graphics: WebGPU
Product: Testing → Core

CI Results

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

Total 13 tests

Status Summary

Firefox

PASS: 2

Chrome

PASS: 2

Safari

PASS: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Component: Graphics: WebGPU → Graphics: CanvasWebGL
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ccc510a77750 https://hg.mozilla.org/integration/autoland/rev/12b3a6d1a480 [wpt PR 63020] - webgl: Present the canvas after blitFramebuffer and clearBuffer, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
You need to log in before you can comment on or make changes to this bug.