DescriptionSkip clearing the canvas before painting the contents of opaque layers
The SkCanvas doesn't need to be cleared before painting the layer contents
if the layer is known to be opaque (e.g. the root layer). Bypassing the clear
gives a sizeable perf boost.
This patch also switches to calling clear() instead of drawRect() for clearing the canvas pixels as clear has been shown to be significantly faster.
BUG=279612
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219894
Patch Set 1 #Patch Set 2 : Use fast clear #Patch Set 3 : fixed virtual OVERRIDE #
Total comments: 1
Patch Set 4 : Remove slow clear #Patch Set 5 : Remove unecessary newline #
Messages
Total messages: 7 (0 generated)
|