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

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

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 years, 8 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_channel_impl.cc ('k') | cc/test/fake_layer_tree_host.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_H_ 5 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_H_
6 #define CC_TEST_FAKE_LAYER_TREE_HOST_H_ 6 #define CC_TEST_FAKE_LAYER_TREE_HOST_H_
7 7
8 #include "cc/debug/micro_benchmark_controller.h" 8 #include "cc/debug/micro_benchmark_controller.h"
9 #include "cc/test/fake_impl_task_runner_provider.h" 9 #include "cc/test/fake_impl_task_runner_provider.h"
10 #include "cc/test/fake_layer_tree_host_client.h" 10 #include "cc/test/fake_layer_tree_host_client.h"
11 #include "cc/test/fake_layer_tree_host_impl.h" 11 #include "cc/test/fake_layer_tree_host_impl.h"
12 #include "cc/test/test_shared_bitmap_manager.h" 12 #include "cc/test/test_shared_bitmap_manager.h"
13 #include "cc/trees/layer_tree_host.h" 13 #include "cc/trees/layer_tree_host.h"
14 #include "cc/trees/layer_tree_impl.h" 14 #include "cc/trees/layer_tree_impl.h"
15 #include "cc/trees/tree_synchronizer.h" 15 #include "cc/trees/tree_synchronizer.h"
16 16
17 namespace cc { 17 namespace cc {
18 class ImageSerializationProcessor; 18 class ImageSerializationProcessor;
19 class TestTaskGraphRunner; 19 class TestTaskGraphRunner;
20 20
21 class FakeLayerTreeHost : public LayerTreeHost { 21 class FakeLayerTreeHost : public LayerTreeHost {
22 public: 22 public:
23 static scoped_ptr<FakeLayerTreeHost> Create( 23 static std::unique_ptr<FakeLayerTreeHost> Create(
24 FakeLayerTreeHostClient* client, 24 FakeLayerTreeHostClient* client,
25 TestTaskGraphRunner* task_graph_runner); 25 TestTaskGraphRunner* task_graph_runner);
26 static scoped_ptr<FakeLayerTreeHost> Create( 26 static std::unique_ptr<FakeLayerTreeHost> Create(
27 FakeLayerTreeHostClient* client, 27 FakeLayerTreeHostClient* client,
28 TestTaskGraphRunner* task_graph_runner, 28 TestTaskGraphRunner* task_graph_runner,
29 const LayerTreeSettings& settings); 29 const LayerTreeSettings& settings);
30 static scoped_ptr<FakeLayerTreeHost> Create( 30 static std::unique_ptr<FakeLayerTreeHost> Create(
31 FakeLayerTreeHostClient* client, 31 FakeLayerTreeHostClient* client,
32 TestTaskGraphRunner* task_graph_runner, 32 TestTaskGraphRunner* task_graph_runner,
33 const LayerTreeSettings& settings, 33 const LayerTreeSettings& settings,
34 CompositorMode mode); 34 CompositorMode mode);
35 static scoped_ptr<FakeLayerTreeHost> Create( 35 static std::unique_ptr<FakeLayerTreeHost> Create(
36 FakeLayerTreeHostClient* client, 36 FakeLayerTreeHostClient* client,
37 TestTaskGraphRunner* task_graph_runner, 37 TestTaskGraphRunner* task_graph_runner,
38 const LayerTreeSettings& settings, 38 const LayerTreeSettings& settings,
39 CompositorMode mode, 39 CompositorMode mode,
40 InitParams params); 40 InitParams params);
41 static scoped_ptr<FakeLayerTreeHost> Create( 41 static std::unique_ptr<FakeLayerTreeHost> Create(
42 FakeLayerTreeHostClient* client, 42 FakeLayerTreeHostClient* client,
43 TestTaskGraphRunner* task_graph_runner, 43 TestTaskGraphRunner* task_graph_runner,
44 const LayerTreeSettings& settings, 44 const LayerTreeSettings& settings,
45 CompositorMode mode, 45 CompositorMode mode,
46 ImageSerializationProcessor* image_serialization_processor); 46 ImageSerializationProcessor* image_serialization_processor);
47 ~FakeLayerTreeHost() override; 47 ~FakeLayerTreeHost() override;
48 48
49 const RendererCapabilities& GetRendererCapabilities() const override; 49 const RendererCapabilities& GetRendererCapabilities() const override;
50 void SetNeedsCommit() override; 50 void SetNeedsCommit() override;
51 void SetNeedsUpdateLayers() override {} 51 void SetNeedsUpdateLayers() override {}
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 FakeLayerTreeHostImpl host_impl_; 93 FakeLayerTreeHostImpl host_impl_;
94 bool needs_commit_; 94 bool needs_commit_;
95 95
96 bool renderer_capabilities_set; 96 bool renderer_capabilities_set;
97 RendererCapabilities renderer_capabilities; 97 RendererCapabilities renderer_capabilities;
98 }; 98 };
99 99
100 } // namespace cc 100 } // namespace cc
101 101
102 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_ 102 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/test/fake_channel_impl.cc ('k') | cc/test/fake_layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698