| 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 | 6 |
| 7 #include "platform/graphics/RecordingImageBufferSurface.h" | 7 #include "platform/graphics/RecordingImageBufferSurface.h" |
| 8 | 8 |
| 9 #include "platform/graphics/GraphicsContext.h" | 9 #include "platform/graphics/GraphicsContext.h" |
| 10 #include "platform/graphics/ImageBuffer.h" | 10 #include "platform/graphics/ImageBuffer.h" |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 235 |
| 236 virtual void postTask(Task* task) | 236 virtual void postTask(Task* task) |
| 237 { | 237 { |
| 238 EXPECT_EQ((Task*)0, m_task); | 238 EXPECT_EQ((Task*)0, m_task); |
| 239 m_task = task; | 239 m_task = task; |
| 240 } | 240 } |
| 241 | 241 |
| 242 virtual void postDelayedTask(Task*, long long delayMs) OVERRIDE { ASSERT
_NOT_REACHED(); }; | 242 virtual void postDelayedTask(Task*, long long delayMs) OVERRIDE { ASSERT
_NOT_REACHED(); }; |
| 243 | 243 |
| 244 virtual bool isCurrentThread() const OVERRIDE { return true; } | 244 virtual bool isCurrentThread() const OVERRIDE { return true; } |
| 245 virtual PlatformThreadId threadId() const OVERRIDE |
| 246 { |
| 247 ASSERT_NOT_REACHED(); |
| 248 return 0; |
| 249 } |
| 245 | 250 |
| 246 virtual void addTaskObserver(TaskObserver* taskObserver) OVERRIDE | 251 virtual void addTaskObserver(TaskObserver* taskObserver) OVERRIDE |
| 247 { | 252 { |
| 248 EXPECT_EQ((TaskObserver*)0, m_taskObserver); | 253 EXPECT_EQ((TaskObserver*)0, m_taskObserver); |
| 249 m_taskObserver = taskObserver; | 254 m_taskObserver = taskObserver; |
| 250 } | 255 } |
| 251 | 256 |
| 252 virtual void removeTaskObserver(TaskObserver* taskObserver) OVERRIDE | 257 virtual void removeTaskObserver(TaskObserver* taskObserver) OVERRIDE |
| 253 { | 258 { |
| 254 EXPECT_EQ(m_taskObserver, taskObserver); | 259 EXPECT_EQ(m_taskObserver, taskObserver); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 } | 352 } |
| 348 | 353 |
| 349 DEFINE_TEST_TASK_WRAPPER_CLASS(testClearRect) | 354 DEFINE_TEST_TASK_WRAPPER_CLASS(testClearRect) |
| 350 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) | 355 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) |
| 351 { | 356 { |
| 352 CALL_TEST_TASK_WRAPPER(testClearRect); | 357 CALL_TEST_TASK_WRAPPER(testClearRect); |
| 353 expectDisplayListEnabled(true); | 358 expectDisplayListEnabled(true); |
| 354 } | 359 } |
| 355 | 360 |
| 356 } // namespace | 361 } // namespace |
| OLD | NEW |