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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 namespace blink { 55 namespace blink {
56 namespace scheduler { 56 namespace scheduler {
57 class RendererScheduler; 57 class RendererScheduler;
58 class RendererSchedulerImpl; 58 class RendererSchedulerImpl;
59 } 59 }
60 class TestingPlatformMockWebTaskRunner; 60 class TestingPlatformMockWebTaskRunner;
61 class TestingPlatformMockWebThread; 61 class TestingPlatformMockWebThread;
62 class WebCompositorSupport; 62 class WebCompositorSupport;
63 class WebThread; 63 class WebThread;
64 64
65 class TestingCompositorSupport : public WebCompositorSupport {}; 65 class TestingCompositorSupport : public WebCompositorSupport {
66 std::unique_ptr<WebLayer> createLayer() override;
67 std::unique_ptr<WebLayer> createLayerFromCCLayer(cc::Layer*) override;
68 std::unique_ptr<WebContentLayer> createContentLayer(
69 WebContentLayerClient*) override;
70 std::unique_ptr<WebExternalTextureLayer> createExternalTextureLayer(
71 cc::TextureLayerClient*) override;
72 std::unique_ptr<WebImageLayer> createImageLayer() override;
73 std::unique_ptr<WebScrollbarLayer> createScrollbarLayer(
74 std::unique_ptr<WebScrollbar>,
75 WebScrollbarThemePainter,
76 std::unique_ptr<WebScrollbarThemeGeometry>) override;
77 std::unique_ptr<WebScrollbarLayer> createSolidColorScrollbarLayer(
78 WebScrollbar::Orientation,
79 int thumbThickness,
80 int trackStart,
81 bool isLeftSideVerticalScrollbar) override;
82 };
66 83
67 class TestingPlatformMockScheduler : public WebScheduler { 84 class TestingPlatformMockScheduler : public WebScheduler {
68 WTF_MAKE_NONCOPYABLE(TestingPlatformMockScheduler); 85 WTF_MAKE_NONCOPYABLE(TestingPlatformMockScheduler);
69 86
70 public: 87 public:
71 TestingPlatformMockScheduler(); 88 TestingPlatformMockScheduler();
72 ~TestingPlatformMockScheduler() override; 89 ~TestingPlatformMockScheduler() override;
73 90
74 void runSingleTask(); 91 void runSingleTask();
75 void runAllTasks(); 92 void runAllTasks();
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 m_discardableMemoryAllocator; 206 m_discardableMemoryAllocator;
190 std::unique_ptr<DummyPlatform> m_platform; 207 std::unique_ptr<DummyPlatform> m_platform;
191 std::unique_ptr<cc_blink::WebCompositorSupportImpl> m_compositorSupport; 208 std::unique_ptr<cc_blink::WebCompositorSupportImpl> m_compositorSupport;
192 TestingPlatformSupport::Config m_testingPlatformConfig; 209 TestingPlatformSupport::Config m_testingPlatformConfig;
193 std::unique_ptr<TestingPlatformSupport> m_testingPlatformSupport; 210 std::unique_ptr<TestingPlatformSupport> m_testingPlatformSupport;
194 }; 211 };
195 212
196 } // namespace blink 213 } // namespace blink
197 214
198 #endif // TestingPlatformSupport_h 215 #endif // TestingPlatformSupport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698