DescriptionUse SkCanvas::SkCanvas(SkBitmap) instead of going thru SkSurface
I learnt that you can just wrap an SkBitmap with an SkCanvas for cases
like these. SkSurface is a more general thing when your backing may
not be in cpu memory or when you have more complicated SkImageInfo.
For us, it is coming from the SkBitmap which is cpu memory-backed. So
this is simpler code.
R=oshima@chromium.org, pkasting@chromium.org, sadrul@chromium.org
BUG=671433
Review-Url: https://codereview.chromium.org/2764163002
Cr-Commit-Position: refs/heads/master@{#458749}
Committed: https://chromium.googlesource.com/chromium/src/+/ba607278f124cd99822dda9cde8dfdaecef830a0
Patch Set 1 #
Messages
Total messages: 14 (8 generated)
|