DescriptionAdding protected API in SkCanvas to disable use of SkRasterClip
This CL adds SkCanvas::disableRasterClip which can be invoked by
derived classes that wish to turn off complex clip region
construction. When in this mode, the canvas only tracks the
bounds of the clip and getTotalClip always returns a rectangular
region corresponding to conservative bounds.
Motivation: replace the current strategy used by the
kUsePathBoundsForClip_RecordingFlag optimization in SkPicture,
which has caveats.
BUG=https://code.google.com/p/chromium/issues/detail?id=174367
TEST=covered by gm+render_pictures
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #
Total comments: 4
Patch Set 7 : #
MessagesTotal messages: 8
|