Chromium Code Reviews
DescriptionClean up calls to ToSkPicture
In the future, PaintRecord is going to become a real class, and so a
function that takes in a raw PaintRecord* and returns an SkPicture*
doesn't make much sense, as it'll really be an ownership transfer.
Therefore, remove the callers that use the raw pointer version.
ToSkPicture in the future is going to be a playback instead of just
a cast and will not be free. So, this also cleans up two callsites
that do not have to use drawPicture(ToSkPicture) and could instead use
PaintRecord::playback(SkCanvas*).
However, drawPicture has some optional parameters, but there's only
one callsite that uses it (!!!) so just hoist a single saveLayer call
up and make the PaintCavnas API more clean. This is baking what
SkAutoCanvasMatrixPaint does in SkCanvas.cpp into that callsite
in PaintGeneratedImage.
BUG=671433
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url: https://codereview.chromium.org/2769533002
Cr-Commit-Position: refs/heads/master@{#459208}
Committed: https://chromium.googlesource.com/chromium/src/+/dffda5006efcf5d473530268ff2da14f43e41cc3
Patch Set 1 #
Total comments: 4
Patch Set 2 : Rebase #
Messages
Total messages: 21 (15 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||