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

Unified Diff: third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.h

Issue 1956853002: [SPv2] Build trivial cc property trees in PaintArtifactCompositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix DCHECK in unit tests Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.h
diff --git a/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.h b/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.h
index 648c033e50bff5335911d73d6f2be56b1c1ac62f..a4e3d2a50dfcc6bd610d9eca953997b3ef8f96ca 100644
--- a/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.h
+++ b/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.h
@@ -15,6 +15,7 @@
namespace cc {
class LayerTreeHost;
+class LayerTreeSettings;
}
namespace blink {
@@ -29,8 +30,12 @@ class WebLayerTreeViewImplForTesting : public blink::WebLayerTreeView,
WTF_MAKE_NONCOPYABLE(WebLayerTreeViewImplForTesting);
public:
WebLayerTreeViewImplForTesting();
+ explicit WebLayerTreeViewImplForTesting(const cc::LayerTreeSettings&);
~WebLayerTreeViewImplForTesting() override;
+ static cc::LayerTreeSettings defaultLayerTreeSettings();
+ cc::LayerTreeHost* layerTreeHost() { return m_layerTreeHost.get(); }
+
// blink::WebLayerTreeView implementation.
void setRootLayer(const blink::WebLayer&) override;
void clearRootLayer() override;

Powered by Google App Engine
This is Rietveld 408576698