DescriptionSmall tweaks and a bug fix.
Bug fixed: I was calling paint->canComputeFastBounds() where I should have been calling fSaveStack[i].paint->canComputeFastBounds().
This suggested I factor out the paint adjusting code, now called AdjustForPaint(). This removes the getImageFilter() check for SaveLayers, which seems like an optimization we can add back later if it proves important.
We're going to want to intersect the bounds with the current clip bounds eventually, so might as well land that here too.
Plus, more const.
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/479601b9a74b5b8e424ed3d68882e161617bdceb
Patch Set 1 #Patch Set 2 : what -> why #Patch Set 3 : const #
Total comments: 4
Patch Set 4 : comments + rebase #Messages
Total messages: 11 (0 generated)
|