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

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

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another GYP fix Created 4 years, 5 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 ASSERT_NOT_REACHED(); 269 ASSERT_NOT_REACHED();
270 return 0.0; 270 return 0.0;
271 } 271 }
272 272
273 double monotonicallyIncreasingVirtualTimeSeconds() const override 273 double monotonicallyIncreasingVirtualTimeSeconds() const override
274 { 274 {
275 ASSERT_NOT_REACHED(); 275 ASSERT_NOT_REACHED();
276 return 0.0; 276 return 0.0;
277 } 277 }
278 278
279 scoped_refptr<base::SingleThreadTaskRunner> taskRunner() override
280 {
281 ASSERT_NOT_REACHED();
282 return nullptr;
283 }
284
279 Task* m_task; 285 Task* m_task;
280 }; 286 };
281 287
282 class CurrentThreadMock : public WebThread { 288 class CurrentThreadMock : public WebThread {
283 public: 289 public:
284 CurrentThreadMock() : m_taskObserver(0) { } 290 CurrentThreadMock() : m_taskObserver(0) { }
285 291
286 ~CurrentThreadMock() override 292 ~CurrentThreadMock() override
287 { 293 {
288 EXPECT_EQ((WebTaskRunner::Task*)0, m_taskRunner.m_task); 294 EXPECT_EQ((WebTaskRunner::Task*)0, m_taskRunner.m_task);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 expectDisplayListEnabled(true); 391 expectDisplayListEnabled(true);
386 } 392 }
387 393
388 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) 394 TEST_F(RecordingImageBufferSurfaceTest, testClearRect)
389 { 395 {
390 CALL_TEST_TASK_WRAPPER(testClearRect); 396 CALL_TEST_TASK_WRAPPER(testClearRect);
391 expectDisplayListEnabled(true); 397 expectDisplayListEnabled(true);
392 } 398 }
393 399
394 } // namespace blink 400 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698