| Index: webkit/renderer/compositor_bindings/web_layer_impl.cc
|
| diff --git a/webkit/renderer/compositor_bindings/web_layer_impl.cc b/webkit/renderer/compositor_bindings/web_layer_impl.cc
|
| index 0cac5f9c69dc302985b7258e8f534b14a24438d0..5f76315980eb98305a8c5429cce4edaba7c28a89 100644
|
| --- a/webkit/renderer/compositor_bindings/web_layer_impl.cc
|
| +++ b/webkit/renderer/compositor_bindings/web_layer_impl.cc
|
| @@ -41,14 +41,7 @@ using blink::WebFilterOperations;
|
| namespace webkit {
|
| namespace {
|
|
|
| -struct ImplSidePaintingStatus {
|
| - ImplSidePaintingStatus()
|
| - : enabled(cc::switches::IsImplSidePaintingEnabled()) {
|
| - }
|
| - bool enabled;
|
| -};
|
| -base::LazyInstance<ImplSidePaintingStatus> g_impl_side_painting_status =
|
| - LAZY_INSTANCE_INITIALIZER;
|
| +bool g_impl_side_painting_enabled = false;
|
|
|
| } // namespace
|
|
|
| @@ -70,7 +63,12 @@ WebLayerImpl::~WebLayerImpl() {
|
|
|
| // static
|
| bool WebLayerImpl::UsingPictureLayer() {
|
| - return g_impl_side_painting_status.Get().enabled;
|
| + return g_impl_side_painting_enabled;
|
| +}
|
| +
|
| +// static
|
| +void WebLayerImpl::SetImplSidePaintingEnabled(bool enabled) {
|
| + g_impl_side_painting_enabled = enabled;
|
| }
|
|
|
| int WebLayerImpl::id() const { return layer_->id(); }
|
|
|