Chromium Code Reviews
DescriptionChange mock canvases to paint into SkCanvas
To simplify interfaces, cc::PaintCanvas doesn't want to support onDrawX
style overrides while painting. To avoid this, change test code that
paints into mock canvases and tries to detect what has been drawn to
paint into a PaintCanvas originally and play that recorded result
back into an SkCanvas afterwards.
In the future, when PaintRecord is more introspectable by test code
and isn't just providing an SkPicture, then test code could just look
at the PaintRecord directly.
This code all works right now because cc::PaintCanvas is a typedef to
SkCanvas, but as soon as they become separate types then this code
will no longer work.
BUG=671433
Review-Url: https://codereview.chromium.org/2715793002
Cr-Commit-Position: refs/heads/master@{#453060}
Committed: https://chromium.googlesource.com/chromium/src/+/26abaa05f21dc00bd9f089e3aea037891c6d903a
Patch Set 1 #Patch Set 2 : Fix deps #
Messages
Total messages: 20 (14 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||