| Index: content/renderer/render_thread_impl.cc
|
| diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
|
| index 800d3979098ecdad5cb14ff975e3902e424d1510..1dcaaa6f25a0819ac9b32f3e6748c033b2c1c9cf 100644
|
| --- a/content/renderer/render_thread_impl.cc
|
| +++ b/content/renderer/render_thread_impl.cc
|
| @@ -594,6 +594,7 @@ RenderThreadImpl::RenderThreadImpl(
|
| renderer_scheduler_(std::move(scheduler)),
|
| main_message_loop_(std::move(main_message_loop)),
|
| categorized_worker_pool_(new CategorizedWorkerPool()),
|
| + is_scroll_animator_enabled_(false),
|
| renderer_binding_(this) {
|
| scoped_refptr<base::SingleThreadTaskRunner> test_task_counter;
|
| DCHECK(base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| @@ -1587,6 +1588,10 @@ bool RenderThreadImpl::IsThreadedAnimationEnabled() {
|
| return is_threaded_animation_enabled_;
|
| }
|
|
|
| +bool RenderThreadImpl::IsScrollAnimatorEnabled() {
|
| + return is_scroll_animator_enabled_;
|
| +}
|
| +
|
| void RenderThreadImpl::OnRAILModeChanged(v8::RAILMode rail_mode) {
|
| blink::mainThreadIsolate()->SetRAILMode(rail_mode);
|
| blink::setRAILModeOnWorkerThreadIsolates(rail_mode);
|
| @@ -2062,6 +2067,7 @@ gpu::GpuChannelHost* RenderThreadImpl::GetGpuChannel() {
|
|
|
| void RenderThreadImpl::CreateView(mojom::CreateViewParamsPtr params) {
|
| CompositorDependencies* compositor_deps = this;
|
| + is_scroll_animator_enabled_ = params->web_preferences.enable_scroll_animator;
|
| // When bringing in render_view, also bring in webkit's glue and jsbindings.
|
| RenderViewImpl::Create(compositor_deps, *params,
|
| RenderWidget::ShowCallback());
|
|
|