Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2479663002: Move compositor InputHandler from RenderViewImpl to RenderWidget. (Closed)
Patch Set: Rebase to master@{#445291}. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698