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

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

Issue 2389973002: Use std::unique_ptr to signal ownership transfer in WebCompositorSupport (Closed)
Patch Set: rebase Created 4 years, 2 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/TestingPlatformSupport.h
diff --git a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
index 8935c5b0798aff74fa8660f236b3c95c95fd5579..5cf5b13c01c9830398bd5f870edd2d071af66729 100644
--- a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
+++ b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
@@ -62,7 +62,24 @@ class TestingPlatformMockWebThread;
class WebCompositorSupport;
class WebThread;
-class TestingCompositorSupport : public WebCompositorSupport {};
+class TestingCompositorSupport : public WebCompositorSupport {
+ std::unique_ptr<WebLayer> createLayer() override;
+ std::unique_ptr<WebLayer> createLayerFromCCLayer(cc::Layer*) override;
+ std::unique_ptr<WebContentLayer> createContentLayer(
+ WebContentLayerClient*) override;
+ std::unique_ptr<WebExternalTextureLayer> createExternalTextureLayer(
+ cc::TextureLayerClient*) override;
+ std::unique_ptr<WebImageLayer> createImageLayer() override;
+ std::unique_ptr<WebScrollbarLayer> createScrollbarLayer(
+ std::unique_ptr<WebScrollbar>,
+ WebScrollbarThemePainter,
+ std::unique_ptr<WebScrollbarThemeGeometry>) override;
+ std::unique_ptr<WebScrollbarLayer> createSolidColorScrollbarLayer(
+ WebScrollbar::Orientation,
+ int thumbThickness,
+ int trackStart,
+ bool isLeftSideVerticalScrollbar) override;
+};
class TestingPlatformMockScheduler : public WebScheduler {
WTF_MAKE_NONCOPYABLE(TestingPlatformMockScheduler);

Powered by Google App Engine
This is Rietveld 408576698