DescriptionBuilder class for SkLayerDrawLooper.
SkLayerDrawLooper provides methods like addLayer() to build up a linked list
of layers. Working towards making this class immutable, this patch introduces
the SkLayerDrawLooperBuilder class which is used to accumulate all the layers
first. Once all layers are in place, it creates a new SkLayerDrawLooper object
and hands over the list of layers to that object.
For now we keep the addLayer methods in SkLayerDrawLooper so we don't break
Chrome and Blink when this is landed. Once we've updated all users, we can
remove the methods.
BUG=skia:2141
Committed: http://code.google.com/p/skia/source/detail?r=13448
Patch Set 1 #
Total comments: 2
Patch Set 2 : createLooper -> detachLooper #Patch Set 3 : Make builder inner class; update tests. #
Total comments: 1
Patch Set 4 : Implement own CreateProc & remove SkLayerDrawLooper(SkReadBuffer&). #
Messages
Total messages: 16 (0 generated)
|