| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/test/fake_proxy.h" | 5 #include "cc/test/fake_proxy.h" |
| 6 | 6 |
| 7 namespace cc { | 7 namespace cc { |
| 8 | 8 |
| 9 FakeProxy::FakeProxy() : layer_tree_host_(nullptr) {} |
| 10 |
| 9 void FakeProxy::SetLayerTreeHost(LayerTreeHost* host) { | 11 void FakeProxy::SetLayerTreeHost(LayerTreeHost* host) { |
| 10 layer_tree_host_ = host; | 12 layer_tree_host_ = host; |
| 11 } | 13 } |
| 12 | 14 |
| 13 bool FakeProxy::IsStarted() const { return true; } | 15 bool FakeProxy::IsStarted() const { return true; } |
| 14 | 16 |
| 15 bool FakeProxy::CommitToActiveTree() const { | 17 bool FakeProxy::CommitToActiveTree() const { |
| 16 return false; | 18 return false; |
| 17 } | 19 } |
| 18 | 20 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 | 34 |
| 33 bool FakeProxy::SupportsImplScrolling() const { | 35 bool FakeProxy::SupportsImplScrolling() const { |
| 34 return true; | 36 return true; |
| 35 } | 37 } |
| 36 | 38 |
| 37 bool FakeProxy::MainFrameWillHappenForTesting() { | 39 bool FakeProxy::MainFrameWillHappenForTesting() { |
| 38 return false; | 40 return false; |
| 39 } | 41 } |
| 40 | 42 |
| 41 } // namespace cc | 43 } // namespace cc |
| OLD | NEW |