DescriptionThis CL moves the second optimization over from the filter tool into PictureRecord. This new optimization looks for the pattern:
SAVE_LAYER
SAVE
CLIP_RECT
DRAW_BITMAP*
RESTORE
RESTORE
where the saveLayer's paint can be folded into the drawBimap*'s.
Additionally some minor refactoring of the optimizations has been performed including:
splitting off a merge_savelayer_paint_into_drawbitmp subroutine
adding a convert_command_to_noop method
adding an array of optimization function pointers
adding a generic matching method ('match')
Performance numbers are in-line with what was seen in https://codereview.appspot.com/7294049/
Patch Set 1 #Patch Set 2 : Fixed comments #Patch Set 3 : Hid new optimization behind SK_IGNORE_PICTURE_RECORD_SAVE_LAYER_OPT flag #Patch Set 4 : Split out pattern and results in match routine #MessagesTotal messages: 5
|