Index: Source/platform/graphics/ImageFrameGeneratorTest.cpp |
diff --git a/Source/platform/graphics/ImageFrameGeneratorTest.cpp b/Source/platform/graphics/ImageFrameGeneratorTest.cpp |
index c4ab8477bd52aa85fc2acffd62964b952c0bca37..f916435f9439395c170a71322ea8248953ba0787 100644 |
--- a/Source/platform/graphics/ImageFrameGeneratorTest.cpp |
+++ b/Source/platform/graphics/ImageFrameGeneratorTest.cpp |
@@ -177,7 +177,7 @@ TEST_F(ImageFrameGeneratorTest, incompleteDecodeBecomesCompleteMultiThreaded) |
setFrameStatus(ImageFrame::FrameComplete); |
addNewData(); |
OwnPtr<WebThread> thread = adoptPtr(Platform::current()->createThread("DecodeThread")); |
- thread->postTask(FROM_HERE, new Task(threadSafeBind(&decodeThreadMain, AllowCrossThreadAccess(m_generator.get())))); |
+ thread->defaultTaskRunner()->postTask(FROM_HERE, new Task(threadSafeBind(&decodeThreadMain, AllowCrossThreadAccess(m_generator.get())))); |
thread.clear(); |
EXPECT_EQ(2, m_decodeRequestCount); |
EXPECT_EQ(1, m_decodersDestroyed); |