| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 NOTREACHED(); | 275 NOTREACHED(); |
| 276 return 0.0; | 276 return 0.0; |
| 277 } | 277 } |
| 278 | 278 |
| 279 double monotonicallyIncreasingVirtualTimeSeconds() const override | 279 double monotonicallyIncreasingVirtualTimeSeconds() const override |
| 280 { | 280 { |
| 281 NOTREACHED(); | 281 NOTREACHED(); |
| 282 return 0.0; | 282 return 0.0; |
| 283 } | 283 } |
| 284 | 284 |
| 285 base::SingleThreadTaskRunner* taskRunner() override |
| 286 { |
| 287 NOTREACHED(); |
| 288 return nullptr; |
| 289 } |
| 290 |
| 285 Task* m_task; | 291 Task* m_task; |
| 286 }; | 292 }; |
| 287 | 293 |
| 288 class CurrentThreadMock : public WebThread { | 294 class CurrentThreadMock : public WebThread { |
| 289 public: | 295 public: |
| 290 CurrentThreadMock() : m_taskObserver(0) { } | 296 CurrentThreadMock() : m_taskObserver(0) { } |
| 291 | 297 |
| 292 ~CurrentThreadMock() override | 298 ~CurrentThreadMock() override |
| 293 { | 299 { |
| 294 EXPECT_EQ((WebTaskRunner::Task*)0, m_taskRunner.m_task); | 300 EXPECT_EQ((WebTaskRunner::Task*)0, m_taskRunner.m_task); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 expectDisplayListEnabled(true); | 397 expectDisplayListEnabled(true); |
| 392 } | 398 } |
| 393 | 399 |
| 394 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) | 400 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) |
| 395 { | 401 { |
| 396 CALL_TEST_TASK_WRAPPER(testClearRect); | 402 CALL_TEST_TASK_WRAPPER(testClearRect); |
| 397 expectDisplayListEnabled(true); | 403 expectDisplayListEnabled(true); |
| 398 } | 404 } |
| 399 | 405 |
| 400 } // namespace blink | 406 } // namespace blink |
| OLD | NEW |