| 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 "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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 m_taskObserver->willProcessTask(); | 312 m_taskObserver->willProcessTask(); |
| 313 if (m_taskRunner.m_task) { | 313 if (m_taskRunner.m_task) { |
| 314 m_taskRunner.m_task->run(); | 314 m_taskRunner.m_task->run(); |
| 315 delete m_taskRunner.m_task; | 315 delete m_taskRunner.m_task; |
| 316 m_taskRunner.m_task = 0; | 316 m_taskRunner.m_task = 0; |
| 317 } | 317 } |
| 318 if (m_taskObserver) | 318 if (m_taskObserver) |
| 319 m_taskObserver->didProcessTask(); | 319 m_taskObserver->didProcessTask(); |
| 320 } | 320 } |
| 321 | 321 |
| 322 double virtualTimeSeconds() override |
| 323 { |
| 324 ASSERT_NOT_REACHED(); |
| 325 return 0.0; |
| 326 } |
| 327 |
| 328 double monotonicallyIncreasingVirtualTimeSeconds() override |
| 329 { |
| 330 ASSERT_NOT_REACHED(); |
| 331 return 0.0; |
| 332 } |
| 333 |
| 322 private: | 334 private: |
| 323 MockWebTaskRunner m_taskRunner; | 335 MockWebTaskRunner m_taskRunner; |
| 324 TaskObserver* m_taskObserver; | 336 TaskObserver* m_taskObserver; |
| 325 }; | 337 }; |
| 326 | 338 |
| 327 CurrentThreadMock m_currentThread; | 339 CurrentThreadMock m_currentThread; |
| 328 }; | 340 }; |
| 329 | 341 |
| 330 } // anonymous namespace | 342 } // anonymous namespace |
| 331 | 343 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 } | 399 } |
| 388 | 400 |
| 389 DEFINE_TEST_TASK_WRAPPER_CLASS(testClearRect) | 401 DEFINE_TEST_TASK_WRAPPER_CLASS(testClearRect) |
| 390 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) | 402 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) |
| 391 { | 403 { |
| 392 CALL_TEST_TASK_WRAPPER(testClearRect); | 404 CALL_TEST_TASK_WRAPPER(testClearRect); |
| 393 expectDisplayListEnabled(true); | 405 expectDisplayListEnabled(true); |
| 394 } | 406 } |
| 395 | 407 |
| 396 } // namespace blink | 408 } // namespace blink |
| OLD | NEW |