| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 } | 256 } |
| 257 | 257 |
| 258 void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) ove
rride { ASSERT_NOT_REACHED(); }; | 258 void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) ove
rride { ASSERT_NOT_REACHED(); }; |
| 259 | 259 |
| 260 WebTaskRunner* clone() override | 260 WebTaskRunner* clone() override |
| 261 { | 261 { |
| 262 ASSERT_NOT_REACHED(); | 262 ASSERT_NOT_REACHED(); |
| 263 return nullptr; | 263 return nullptr; |
| 264 } | 264 } |
| 265 | 265 |
| 266 double virtualTimeSeconds() const override | |
| 267 { | |
| 268 ASSERT_NOT_REACHED(); | |
| 269 return 0.0; | |
| 270 } | |
| 271 | |
| 272 double monotonicallyIncreasingVirtualTimeSeconds() const override | |
| 273 { | |
| 274 ASSERT_NOT_REACHED(); | |
| 275 return 0.0; | |
| 276 } | |
| 277 | |
| 278 Task* m_task; | 266 Task* m_task; |
| 279 }; | 267 }; |
| 280 | 268 |
| 281 class CurrentThreadMock : public WebThread { | 269 class CurrentThreadMock : public WebThread { |
| 282 public: | 270 public: |
| 283 CurrentThreadMock() : m_taskObserver(0) { } | 271 CurrentThreadMock() : m_taskObserver(0) { } |
| 284 | 272 |
| 285 ~CurrentThreadMock() override | 273 ~CurrentThreadMock() override |
| 286 { | 274 { |
| 287 EXPECT_EQ((WebTaskRunner::Task*)0, m_taskRunner.m_task); | 275 EXPECT_EQ((WebTaskRunner::Task*)0, m_taskRunner.m_task); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 } | 387 } |
| 400 | 388 |
| 401 DEFINE_TEST_TASK_WRAPPER_CLASS(testClearRect) | 389 DEFINE_TEST_TASK_WRAPPER_CLASS(testClearRect) |
| 402 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) | 390 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) |
| 403 { | 391 { |
| 404 CALL_TEST_TASK_WRAPPER(testClearRect); | 392 CALL_TEST_TASK_WRAPPER(testClearRect); |
| 405 expectDisplayListEnabled(true); | 393 expectDisplayListEnabled(true); |
| 406 } | 394 } |
| 407 | 395 |
| 408 } // namespace blink | 396 } // namespace blink |
| OLD | NEW |