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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp

Issue 2148363004: Use std::unique_ptr<> for WebTaskRunner::clone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "platform/graphics/RecordingImageBufferSurface.h" 5 #include "platform/graphics/RecordingImageBufferSurface.h"
6 6
7 #include "platform/graphics/GraphicsContext.h" 7 #include "platform/graphics/GraphicsContext.h"
8 #include "platform/graphics/ImageBuffer.h" 8 #include "platform/graphics/ImageBuffer.h"
9 #include "platform/graphics/ImageBufferClient.h" 9 #include "platform/graphics/ImageBufferClient.h"
10 #include "platform/graphics/UnacceleratedImageBufferSurface.h" 10 #include "platform/graphics/UnacceleratedImageBufferSurface.h"
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 } 257 }
258 258
259 void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) ove rride { NOTREACHED(); }; 259 void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) ove rride { NOTREACHED(); };
260 260
261 bool runsTasksOnCurrentThread() override 261 bool runsTasksOnCurrentThread() override
262 { 262 {
263 NOTREACHED(); 263 NOTREACHED();
264 return true; 264 return true;
265 } 265 }
266 266
267 WebTaskRunner* clone() override 267 std::unique_ptr<WebTaskRunner> clone() override
268 { 268 {
269 NOTREACHED(); 269 NOTREACHED();
270 return nullptr; 270 return nullptr;
271 } 271 }
272 272
273 double virtualTimeSeconds() const override 273 double virtualTimeSeconds() const override
274 { 274 {
275 NOTREACHED(); 275 NOTREACHED();
276 return 0.0; 276 return 0.0;
277 } 277 }
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 expectDisplayListEnabled(true); 391 expectDisplayListEnabled(true);
392 } 392 }
393 393
394 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) 394 TEST_F(RecordingImageBufferSurfaceTest, testClearRect)
395 { 395 {
396 CALL_TEST_TASK_WRAPPER(testClearRect); 396 CALL_TEST_TASK_WRAPPER(testClearRect);
397 expectDisplayListEnabled(true); 397 expectDisplayListEnabled(true);
398 } 398 }
399 399
400 } // namespace blink 400 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/TimerTest.cpp ('k') | third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698