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

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

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.cpp
diff --git a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
index dd253bce2fe3c4069a5bd516df9863efbcc4ef49..8e44543b40ce1e55bdd0f659ecf116f73225e64b 100644
--- a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
+++ b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
@@ -43,6 +43,10 @@
#include "platform/scheduler/base/test_time_source.h"
#include "platform/scheduler/child/scheduler_tqm_delegate_for_test.h"
#include "platform/scheduler/renderer/renderer_scheduler_impl.h"
+#include "public/platform/WebContentLayer.h"
+#include "public/platform/WebExternalTextureLayer.h"
+#include "public/platform/WebImageLayer.h"
+#include "public/platform/WebScrollbarLayer.h"
#include "wtf/CryptographicallyRandomNumber.h"
#include "wtf/CurrentTime.h"
#include "wtf/PtrUtil.h"
@@ -66,6 +70,45 @@ class DummyThread final : public blink::WebThread {
} // namespace
+std::unique_ptr<WebLayer> TestingCompositorSupport::createLayer() {
+ return nullptr;
+}
+
+std::unique_ptr<WebLayer> TestingCompositorSupport::createLayerFromCCLayer(
+ cc::Layer*) {
+ return nullptr;
+}
+
+std::unique_ptr<WebContentLayer> TestingCompositorSupport::createContentLayer(
+ WebContentLayerClient*) {
+ return nullptr;
+}
+std::unique_ptr<WebExternalTextureLayer>
+TestingCompositorSupport::createExternalTextureLayer(cc::TextureLayerClient*) {
+ return nullptr;
+}
+
+std::unique_ptr<WebImageLayer> TestingCompositorSupport::createImageLayer() {
+ return nullptr;
+}
+
+std::unique_ptr<WebScrollbarLayer>
+TestingCompositorSupport::createScrollbarLayer(
+ std::unique_ptr<WebScrollbar>,
+ WebScrollbarThemePainter,
+ std::unique_ptr<WebScrollbarThemeGeometry>) {
+ return nullptr;
+}
+
+std::unique_ptr<WebScrollbarLayer>
+TestingCompositorSupport::createSolidColorScrollbarLayer(
+ WebScrollbar::Orientation,
+ int thumbThickness,
+ int trackStart,
+ bool isLeftSideVerticalScrollbar) {
+ return nullptr;
+}
+
TestingPlatformSupport::TestingPlatformSupport()
: TestingPlatformSupport(TestingPlatformSupport::Config()) {}

Powered by Google App Engine
This is Rietveld 408576698