DescriptionRemember value of IsImplSidePaintingEnabled
Command line arguments are constant at runtime, but the function
cc::switches::IsImplSidePaintingEnabled() does two searches through
the list of arguments every time it's called, and it's called every
time we record a SkPicture.
With this patch, the function remembers the value determined by the
first call and avoids repeating the searches on subsequent calls.
BUG=311248
R=nduca@chromium.org,skyostil@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231314
Patch Set 1 #Patch Set 2 : Sami's review #Patch Set 3 : Brace style not caught by presubmit #Messages
Total messages: 9 (0 generated)
|