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 |
266 Task* m_task; | 278 Task* m_task; |
267 }; | 279 }; |
268 | 280 |
269 class CurrentThreadMock : public WebThread { | 281 class CurrentThreadMock : public WebThread { |
270 public: | 282 public: |
271 CurrentThreadMock() : m_taskObserver(0) { } | 283 CurrentThreadMock() : m_taskObserver(0) { } |
272 | 284 |
273 ~CurrentThreadMock() override | 285 ~CurrentThreadMock() override |
274 { | 286 { |
275 EXPECT_EQ((WebTaskRunner::Task*)0, m_taskRunner.m_task); | 287 EXPECT_EQ((WebTaskRunner::Task*)0, m_taskRunner.m_task); |
(...skipping 111 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 |