| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |