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_layer_tree_host_impl_client.h" | 5 #include "cc/test/fake_layer_tree_host_impl_client.h" |
6 #include "cc/trees/mutator_host.h" | 6 #include "cc/trees/mutator_host.h" |
7 | 7 |
8 namespace cc { | 8 namespace cc { |
9 | 9 |
10 bool FakeLayerTreeHostImplClient::IsInsideDraw() { | 10 bool FakeLayerTreeHostImplClient::IsInsideDraw() { |
11 return false; | 11 return false; |
12 } | 12 } |
13 | 13 |
14 void FakeLayerTreeHostImplClient::PostAnimationEventsToMainThreadOnImplThread( | 14 void FakeLayerTreeHostImplClient::PostAnimationEventsToMainThreadOnImplThread( |
15 std::unique_ptr<MutatorEvents> events) {} | 15 std::unique_ptr<MutatorEvents> events) {} |
16 | 16 |
17 void FakeLayerTreeHostImplClient::NeedsImplSideInvalidation() { | 17 void FakeLayerTreeHostImplClient::NeedsImplSideInvalidation() { |
18 did_request_impl_side_invalidation_ = true; | 18 did_request_impl_side_invalidation_ = true; |
19 } | 19 } |
20 | 20 |
| 21 void FakeLayerTreeHostImplClient::NotifyReadyToActivate() { |
| 22 ready_to_activate_ = true; |
| 23 } |
| 24 |
| 25 void FakeLayerTreeHostImplClient::NotifyReadyToDraw() { |
| 26 ready_to_draw_ = true; |
| 27 } |
| 28 |
21 } // namespace cc | 29 } // namespace cc |
OLD | NEW |