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

Side by Side Diff: third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.h

Issue 2307143002: Remove non-layer-list codepath from PaintArtifactCompositor (Closed)
Patch Set: Formatting cleanup 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
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 WebLayerTreeViewImplForTesting_h 5 #ifndef WebLayerTreeViewImplForTesting_h
6 #define WebLayerTreeViewImplForTesting_h 6 #define WebLayerTreeViewImplForTesting_h
7 7
8 #include "cc/test/test_task_graph_runner.h" 8 #include "cc/test/test_task_graph_runner.h"
9 #include "cc/trees/layer_tree_host_client.h" 9 #include "cc/trees/layer_tree_host_client.h"
10 #include "cc/trees/layer_tree_host_single_thread_client.h" 10 #include "cc/trees/layer_tree_host_single_thread_client.h"
(...skipping 10 matching lines...) Expand all
21 class WebCompositorAnimationTimeline; 21 class WebCompositorAnimationTimeline;
22 class WebLayer; 22 class WebLayer;
23 23
24 // Dummy WeblayerTeeView that does not support any actual compositing. 24 // Dummy WeblayerTeeView that does not support any actual compositing.
25 class WebLayerTreeViewImplForTesting : public blink::WebLayerTreeView, 25 class WebLayerTreeViewImplForTesting : public blink::WebLayerTreeView,
26 public cc::LayerTreeHostClient, 26 public cc::LayerTreeHostClient,
27 public cc::LayerTreeHostSingleThreadClient { 27 public cc::LayerTreeHostSingleThreadClient {
28 WTF_MAKE_NONCOPYABLE(WebLayerTreeViewImplForTesting); 28 WTF_MAKE_NONCOPYABLE(WebLayerTreeViewImplForTesting);
29 public: 29 public:
30 WebLayerTreeViewImplForTesting(); 30 WebLayerTreeViewImplForTesting();
31 enum LayerListPolicy { DontUseLayerLists, UseLayerLists };
32 explicit WebLayerTreeViewImplForTesting(LayerListPolicy);
33 explicit WebLayerTreeViewImplForTesting(const cc::LayerTreeSettings&); 31 explicit WebLayerTreeViewImplForTesting(const cc::LayerTreeSettings&);
34 ~WebLayerTreeViewImplForTesting() override; 32 ~WebLayerTreeViewImplForTesting() override;
35 33
36 static cc::LayerTreeSettings defaultLayerTreeSettings(); 34 static cc::LayerTreeSettings defaultLayerTreeSettings();
37 cc::LayerTreeHost* layerTreeHost() { return m_layerTreeHost.get(); } 35 cc::LayerTreeHost* layerTreeHost() { return m_layerTreeHost.get(); }
38 bool hasLayer(const WebLayer&); 36 bool hasLayer(const WebLayer&);
39 37
40 // blink::WebLayerTreeView implementation. 38 // blink::WebLayerTreeView implementation.
41 void setRootLayer(const blink::WebLayer&) override; 39 void setRootLayer(const blink::WebLayer&) override;
42 void clearRootLayer() override; 40 void clearRootLayer() override;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void DidAbortSwapBuffers() override {} 98 void DidAbortSwapBuffers() override {}
101 99
102 private: 100 private:
103 cc::TestTaskGraphRunner m_taskGraphRunner; 101 cc::TestTaskGraphRunner m_taskGraphRunner;
104 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost; 102 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost;
105 }; 103 };
106 104
107 } // namespace blink 105 } // namespace blink
108 106
109 #endif // WebLayerTreeViewImplForTesting_h 107 #endif // WebLayerTreeViewImplForTesting_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698