Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Side by Side Diff: Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp

Issue 514193002: Expose platform thread id on WebThread (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/platform/scheduler/SchedulerTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/platform/scheduler/SchedulerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698