DescriptionAdd onDrawBitmapLattice(), avoid unnecessary bitmap->image copy
out/Release/nanobench --match Lattice --config gpu --ms 3000
3.42ms -> 17.2us
For reference, a loop over drawBitmapRects (which is what
Android currently does) is about 13us.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2205273003
Committed: https://skia.googlesource.com/skia/+/168820625c35a8c19f66c661efcbce7a5e334837
Patch Set 1 #
Total comments: 9
Patch Set 2 : Move bitmap virtual into SkBaseDevice #
Total comments: 5
Patch Set 3 : Implement SkBaseDevice::drawBitmapLattice() with a loop #Patch Set 4 : Rebase #Patch Set 5 : Add support for SkLiteRecorder #
Total comments: 5
Depends on Patchset: Messages
Total messages: 40 (21 generated)
|