OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "cc/trees/root_scroller_controller.h" |
| 6 |
| 7 #include "base/memory/ptr_util.h" |
| 8 |
| 9 namespace cc { |
| 10 |
| 11 // static |
| 12 std::unique_ptr<RootScrollerController> RootScrollerController::Create() { |
| 13 return base::WrapUnique(new RootScrollerController); |
| 14 } |
| 15 |
| 16 RootScrollerController::RootScrollerController() |
| 17 : root_scroller_layer_(nullptr) {} |
| 18 |
| 19 void RootScrollerController::SetRootScrollerLayer(LayerImpl* layer) { |
| 20 root_scroller_layer_ = layer; |
| 21 } |
| 22 |
| 23 LayerImpl* RootScrollerController::GetRootScrollerLayer() { |
| 24 return root_scroller_layer_; |
| 25 } |
| 26 |
| 27 } // namespace cc |
OLD | NEW |