| 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..cd35d92091a0fe31e173c3f022f9490d7b385c98 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(); }
|
| @@ -211,6 +209,10 @@ void WebLayerImpl::setBackgroundFilters(const WebFilterOperations& filters) {
|
| layer_->SetBackgroundFilters(filters_impl.AsFilterOperations());
|
| }
|
|
|
| +void WebLayerImpl::setHasGpuRasterizationHint(bool has_hint) {
|
| + layer_->SetHasGpuRasterizationHint(has_hint);
|
| +}
|
| +
|
| void WebLayerImpl::setAnimationDelegate(
|
| blink::WebAnimationDelegate* delegate) {
|
| animation_delegate_adapter_.reset(
|
|
|