| 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 #include "platform/graphics/RecordingImageBufferSurface.h" | 6 #include "platform/graphics/RecordingImageBufferSurface.h" |
| 7 | 7 |
| 8 #include "platform/graphics/GraphicsContext.h" | 8 #include "platform/graphics/GraphicsContext.h" |
| 9 #include "platform/graphics/ImageBuffer.h" | 9 #include "platform/graphics/ImageBuffer.h" |
| 10 #include "platform/graphics/ImageBufferClient.h" | 10 #include "platform/graphics/ImageBufferClient.h" |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 public: | 259 public: |
| 260 MockWebTaskRunner() : m_task(0) { } | 260 MockWebTaskRunner() : m_task(0) { } |
| 261 ~MockWebTaskRunner() override { } | 261 ~MockWebTaskRunner() override { } |
| 262 | 262 |
| 263 virtual void postTask(const WebTraceLocation&, Task* task) | 263 virtual void postTask(const WebTraceLocation&, Task* task) |
| 264 { | 264 { |
| 265 EXPECT_EQ((Task*)0, m_task); | 265 EXPECT_EQ((Task*)0, m_task); |
| 266 m_task = task; | 266 m_task = task; |
| 267 } | 267 } |
| 268 | 268 |
| 269 void postDelayedTask(const WebTraceLocation&, Task*, long long delayMs)
override { ASSERT_NOT_REACHED(); }; | 269 void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) ove
rride { ASSERT_NOT_REACHED(); }; |
| 270 | 270 |
| 271 Task* m_task; | 271 Task* m_task; |
| 272 }; | 272 }; |
| 273 | 273 |
| 274 class CurrentThreadMock : public WebThread { | 274 class CurrentThreadMock : public WebThread { |
| 275 public: | 275 public: |
| 276 CurrentThreadMock() : m_taskObserver(0) { } | 276 CurrentThreadMock() : m_taskObserver(0) { } |
| 277 | 277 |
| 278 ~CurrentThreadMock() override | 278 ~CurrentThreadMock() override |
| 279 { | 279 { |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 } | 404 } |
| 405 | 405 |
| 406 DEFINE_TEST_TASK_WRAPPER_CLASS(testClearRect) | 406 DEFINE_TEST_TASK_WRAPPER_CLASS(testClearRect) |
| 407 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) | 407 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) |
| 408 { | 408 { |
| 409 CALL_TEST_TASK_WRAPPER(testClearRect); | 409 CALL_TEST_TASK_WRAPPER(testClearRect); |
| 410 expectDisplayListEnabled(true); | 410 expectDisplayListEnabled(true); |
| 411 } | 411 } |
| 412 | 412 |
| 413 } // namespace blink | 413 } // namespace blink |
| OLD | NEW |