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

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

Issue 1087203002: Patch 2/3 to get WebScheduler via WebThread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Style nits Created 5 years, 8 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
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "config.h" 5 #include "config.h"
6 6
7 #include "platform/graphics/RecordingImageBufferSurface.h" 7 #include "platform/graphics/RecordingImageBufferSurface.h"
8 8
9 #include "platform/graphics/GraphicsContext.h" 9 #include "platform/graphics/GraphicsContext.h"
10 #include "platform/graphics/ImageBuffer.h" 10 #include "platform/graphics/ImageBuffer.h"
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 m_task->run(); 296 m_task->run();
297 delete m_task; 297 delete m_task;
298 m_task = 0; 298 m_task = 0;
299 } 299 }
300 if (m_taskObserver) 300 if (m_taskObserver)
301 m_taskObserver->didProcessTask(); 301 m_taskObserver->didProcessTask();
302 } 302 }
303 303
304 virtual void exitRunLoop() override { ASSERT_NOT_REACHED(); } 304 virtual void exitRunLoop() override { ASSERT_NOT_REACHED(); }
305 305
306 virtual WebScheduler* scheduler() const override
307 {
308 ASSERT_NOT_REACHED();
309 return nullptr;
310 }
311
306 private: 312 private:
307 TaskObserver* m_taskObserver; 313 TaskObserver* m_taskObserver;
308 Task* m_task; 314 Task* m_task;
309 }; 315 };
310 316
311 class CurrentThreadPlatformMock : public Platform { 317 class CurrentThreadPlatformMock : public Platform {
312 public: 318 public:
313 CurrentThreadPlatformMock() { } 319 CurrentThreadPlatformMock() { }
314 virtual void cryptographicallyRandomValues(unsigned char* buffer, size_t length) { ASSERT_NOT_REACHED(); } 320 virtual void cryptographicallyRandomValues(unsigned char* buffer, size_t length) { ASSERT_NOT_REACHED(); }
315 virtual WebThread* currentThread() override { return &m_currentThread; } 321 virtual WebThread* currentThread() override { return &m_currentThread; }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 } 386 }
381 387
382 DEFINE_TEST_TASK_WRAPPER_CLASS(testClearRect) 388 DEFINE_TEST_TASK_WRAPPER_CLASS(testClearRect)
383 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) 389 TEST_F(RecordingImageBufferSurfaceTest, testClearRect)
384 { 390 {
385 CALL_TEST_TASK_WRAPPER(testClearRect); 391 CALL_TEST_TASK_WRAPPER(testClearRect);
386 expectDisplayListEnabled(true); 392 expectDisplayListEnabled(true);
387 } 393 }
388 394
389 } // namespace 395 } // namespace
OLDNEW
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698