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

Unified Diff: Source/core/workers/WorkerThreadTest.cpp

Issue 1274023003: compositor-worker: Get the thread to run compositor-workers from the Platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 4 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: Source/core/workers/WorkerThreadTest.cpp
diff --git a/Source/core/workers/WorkerThreadTest.cpp b/Source/core/workers/WorkerThreadTest.cpp
index 14549166e531cd3b6f08bab8c897ef3212979b5f..6f686fbe2af4c44feb077ddf46c4f86b993cef01 100644
--- a/Source/core/workers/WorkerThreadTest.cpp
+++ b/Source/core/workers/WorkerThreadTest.cpp
@@ -105,9 +105,9 @@ public:
~WorkerThreadForTest() override { }
// WorkerThread implementation:
- WebThreadSupportingGC& backingThread() override
+ WebThread& backingThread() override
{
- return *m_thread;
+ return m_thread->platformThread();
}
MOCK_METHOD1(doIdleGc, bool(double deadlineSeconds));
@@ -324,7 +324,7 @@ TEST_F(WorkerThreadTest, GcDoesNotOccurWhenNotIdle)
start();
waitForInit();
- WebScheduler* scheduler = m_workerThread->backingThread().platformThread().scheduler();
+ WebScheduler* scheduler = m_workerThread->backingThread().scheduler();
// Post a repeating task that should prevent any GC from happening.
scheduler->postLoadingTask(FROM_HERE, new RepeatingTask(scheduler, completion.get()));

Powered by Google App Engine
This is Rietveld 408576698