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

Side by Side Diff: cc/test/fake_layer_tree_host_client.h

Issue 2337913003: Fork cc::OutputSurface into cc::CompositorFrameSink. (Closed)
Patch Set: cfsfork: android-vulkan Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « cc/test/fake_compositor_frame_sink_client.cc ('k') | cc/test/fake_layer_tree_host_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « cc/test/fake_compositor_frame_sink_client.cc ('k') | cc/test/fake_layer_tree_host_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698