Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3d9354729747344128c15783067e6a0e5d2d799e
      
https://github.com/WebKit/WebKit/commit/3d9354729747344128c15783067e6a0e5d2d799e
  Author: Dan Glastonbury <[email protected]>
  Date:   2026-06-04 (Thu, 04 Jun 2026)

  Changed paths:
    A LayoutTests/fast/canvas/canvas-line-batch-flush-expected.txt
    A LayoutTests/fast/canvas/canvas-line-batch-flush.html

  Log Message:
  -----------
  Add layout test for canvas line stroke IPC batching cross-buffer flush
https://bugs.webkit.org/show_bug.cgi?id=316285
rdar://178693435

Reviewed by Simon Fraser.

Followup test coverage for 314520@main. Canvas single-line strokeLine
calls are coalesced in RemoteGraphicsContextProxy and only sent over IPC
when something observes the source buffer's contents. drawImage from
another canvas must trigger that flush via recordResourceUse(ImageBuffer&);
without it, trailing pending strokes (those that did not fill a 64-line
batch) are dropped from the source.

The test strokes 200 random lines onto an unparented source canvas (so
no read-back forces a flush) and drawImages it into a parented
destination canvas. It asserts the destination pixels are byte-equal to
a separately-rendered direct-stroke reference, and that the reference
itself is non-blank — the latter catches a silent rendering failure
that would otherwise blank both paths and produce a false-positive
pixel comparison.

* LayoutTests/fast/canvas/canvas-line-batch-flush-expected.txt: Added.
* LayoutTests/fast/canvas/canvas-line-batch-flush.html: Added.

Canonical link: https://commits.webkit.org/314598@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to