Descriptioncc: Remove racy initialization code in cc/base/switches.cc.
This moves all lazy initialization code out of cc/base/switches.cc. Code
that needs the value of these switches in a critical path should not rely
on lazy initialization in cc/switches.cc but instead handle this on its own.
Thread-safe lazy initialization code of impl-side painting status has
been added to WebLayerImpl.
This also removes the cc::switches::IsGPURasterizationEnabled() function,
which for consistency should not exist unless the logic to determine the
value is more complicated than HasSwitch(kEnableGPURasterization). This
function was never used in performance sensitive code so lazy initialization
was never necessary.
BUG=330937
TBR=jamesr
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243432
Patch Set 1 #
Total comments: 2
Patch Set 2 : s/usingPictureLayer/UsingPictureLayer/ #Patch Set 3 : fix dynamic linking problem by adding dynamic_annotations dependency to compositor_bindings #
Messages
Total messages: 27 (0 generated)
|