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

Unified Diff: third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp

Issue 2123783002: Expose RunsTasksOnCurrentThread through WebTaskRunner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@00_fix_thread_affinity
Patch Set: rebase Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
index 9cff8807ffa433669392a07b8a2ac374b8dc5c94..4563839819b064c99194c19f771c30ec61bb3e25 100644
--- a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp
@@ -49,7 +49,7 @@ public:
}
// TaskObserver implementation
- void willProcessTask() override { ASSERT_NOT_REACHED(); }
+ void willProcessTask() override { NOTREACHED(); }
void didProcessTask() override
{
ASSERT_TRUE(m_isDirty);
@@ -256,23 +256,29 @@ private:
m_task = task;
}
- void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) override { ASSERT_NOT_REACHED(); };
+ void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) override { NOTREACHED(); };
+
+ bool runsTasksOnCurrentThread() override
+ {
+ NOTREACHED();
+ return true;
+ }
WebTaskRunner* clone() override
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return nullptr;
}
double virtualTimeSeconds() const override
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return 0.0;
}
double monotonicallyIncreasingVirtualTimeSeconds() const override
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return 0.0;
}
@@ -297,7 +303,7 @@ private:
PlatformThreadId threadId() const override
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return 0;
}
@@ -315,7 +321,7 @@ private:
WebScheduler* scheduler() const override
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698