Index: Source/platform/graphics/DeferredImageDecoderTest.cpp |
diff --git a/Source/platform/graphics/DeferredImageDecoderTest.cpp b/Source/platform/graphics/DeferredImageDecoderTest.cpp |
index 5e0ffa6e325e7b8c866ec938458e9c2296bfa490..0f812f7fe44baa38e764c5111325725a7c699d7e 100644 |
--- a/Source/platform/graphics/DeferredImageDecoderTest.cpp |
+++ b/Source/platform/graphics/DeferredImageDecoderTest.cpp |
@@ -226,7 +226,7 @@ TEST_F(DeferredImageDecoderTest, decodeOnOtherThread) |
// Create a thread to rasterize SkPicture. |
OwnPtr<WebThread> thread = adoptPtr(Platform::current()->createThread("RasterThread")); |
- thread->postTask(FROM_HERE, new Task(threadSafeBind(&rasterizeMain, AllowCrossThreadAccess(m_surface->getCanvas()), AllowCrossThreadAccess(picture.get())))); |
+ thread->defaultTaskRunner()->postTask(FROM_HERE, new Task(threadSafeBind(&rasterizeMain, AllowCrossThreadAccess(m_surface->getCanvas()), AllowCrossThreadAccess(picture.get())))); |
thread.clear(); |
EXPECT_EQ(0, m_decodeRequestCount); |