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

Unified Diff: cc/trees/root_scroller_controller.cc

Issue 2113483002: Make RootScroller set the outer viewport scroll layer in the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: cc/trees/root_scroller_controller.cc
diff --git a/cc/trees/root_scroller_controller.cc b/cc/trees/root_scroller_controller.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a18093645f6da2a4d64604c0ee99b6e9d4f1c8c3
--- /dev/null
+++ b/cc/trees/root_scroller_controller.cc
@@ -0,0 +1,27 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "cc/trees/root_scroller_controller.h"
+
+#include "base/memory/ptr_util.h"
+
+namespace cc {
+
+// static
+std::unique_ptr<RootScrollerController> RootScrollerController::Create() {
+ return base::WrapUnique(new RootScrollerController);
+}
+
+RootScrollerController::RootScrollerController()
+ : root_scroller_layer_(nullptr) {}
+
+void RootScrollerController::SetRootScrollerLayer(LayerImpl* layer) {
+ root_scroller_layer_ = layer;
+}
+
+LayerImpl* RootScrollerController::GetRootScrollerLayer() {
+ return root_scroller_layer_;
+}
+
+} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698