Commit Graph
1 Commits
Author SHA1 Message Date
Xida Chen 2f17b6424d Bug 1567647 [wpt PR 17948] - [OT-PW] Implement DrawPattern, a=testonly
Automatic update from web-platform-tests
[OT-PW] Implement DrawPattern

Right now when we use CSS paint to paint the background-image, and have
background-repeat specified, our implementation cannot handle that
because PaintWorkletDeferredImage doesn't implement DrawPattern.
Currently the code path goes into the GeneratedImage::DrawPattern and
that cannot handle the off-thread case.

This CL implements DrawPattern for off-thread paint worklet, and two
layout tests are passing with it. Another layout test is added for
additional testing.

Bug: 957457
Change-Id: I707b4d8e47a6bcd747156e60f1860c1ecdae22e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1691090
Reviewed-by: Khushal <[email protected]>
Reviewed-by: Rune Lillesveen <[email protected]>
Reviewed-by: Kentaro Hara <[email protected]>
Reviewed-by: Stephen Chenney <[email protected]>
Commit-Queue: Xida Chen <[email protected]>
Cr-Commit-Position: refs/heads/master@{#684594}

--

wpt-commits: 424c4b83cbbe7dd792e83eebfcaa84d6e0c5826e
wpt-pr: 17948
2019-08-09 20:31:30 +00:00