| 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 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_CLIENT_H_ | 5 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_CLIENT_H_ |
| 6 #define CC_TEST_FAKE_LAYER_TREE_HOST_CLIENT_H_ | 6 #define CC_TEST_FAKE_LAYER_TREE_HOST_CLIENT_H_ |
| 7 | 7 |
| 8 #include "cc/test/stub_layer_tree_host_client.h" | 8 #include "cc/test/stub_layer_tree_host_client.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| 11 class LayerTreeHost; | 11 class LayerTreeHost; |
| 12 | 12 |
| 13 class FakeLayerTreeHostClient : public StubLayerTreeHostClient { | 13 class FakeLayerTreeHostClient : public StubLayerTreeHostClient { |
| 14 public: | 14 public: |
| 15 FakeLayerTreeHostClient(); | 15 FakeLayerTreeHostClient(); |
| 16 ~FakeLayerTreeHostClient() override; | 16 ~FakeLayerTreeHostClient() override; |
| 17 | 17 |
| 18 // Caller responsible for unsetting this and maintaining the host's lifetime. | 18 // Caller responsible for unsetting this and maintaining the host's lifetime. |
| 19 void SetLayerTreeHost(LayerTreeHost* host) { host_ = host; } | 19 void SetLayerTreeHost(LayerTreeHost* host) { host_ = host; } |
| 20 | 20 |
| 21 // StubLayerTreeHostClient overrides. | 21 // StubLayerTreeHostClient overrides. |
| 22 void RequestNewOutputSurface() override; | 22 void RequestNewCompositorFrameSink() override; |
| 23 void DidFailToInitializeOutputSurface() override; | 23 void DidFailToInitializeCompositorFrameSink() override; |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 LayerTreeHost* host_ = nullptr; | 26 LayerTreeHost* host_ = nullptr; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 } // namespace cc | 29 } // namespace cc |
| 30 | 30 |
| 31 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_CLIENT_H_ | 31 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_CLIENT_H_ |
| OLD | NEW |