| Index: content/renderer/render_thread_impl.cc
|
| diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
|
| index b397ca1c56edebe3f8d7c122278f7c2ef4e28c77..83771b0256873bc9bf6939fa22dd06a65b0567da 100644
|
| --- a/content/renderer/render_thread_impl.cc
|
| +++ b/content/renderer/render_thread_impl.cc
|
| @@ -623,6 +623,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(
|
| @@ -1713,6 +1714,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);
|
| @@ -2114,6 +2119,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());
|
|
|