| Index: third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
|
| index bb60190cba85be49ea519702927a2614fd2d2284..6c189e69acf84dd3d0669371ea9aeeb76ded2339 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
|
| @@ -26,12 +26,12 @@
|
| #include "platform/graphics/DeferredImageDecoder.h"
|
|
|
| #include "platform/SharedBuffer.h"
|
| -#include "platform/Task.h"
|
| #include "platform/ThreadSafeFunctional.h"
|
| #include "platform/graphics/ImageDecodingStore.h"
|
| #include "platform/graphics/ImageFrameGenerator.h"
|
| #include "platform/graphics/test/MockImageDecoder.h"
|
| #include "public/platform/Platform.h"
|
| +#include "public/platform/WebTaskRunner.h"
|
| #include "public/platform/WebThread.h"
|
| #include "public/platform/WebTraceLocation.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -225,7 +225,7 @@ TEST_F(DeferredImageDecoderTest, decodeOnOtherThread)
|
|
|
| // Create a thread to rasterize SkPicture.
|
| OwnPtr<WebThread> thread = adoptPtr(Platform::current()->createThread("RasterThread"));
|
| - thread->taskRunner()->postTask(BLINK_FROM_HERE, new Task(threadSafeBind(&rasterizeMain, AllowCrossThreadAccess(m_surface->getCanvas()), AllowCrossThreadAccess(picture.get()))));
|
| + thread->taskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&rasterizeMain, AllowCrossThreadAccess(m_surface->getCanvas()), AllowCrossThreadAccess(picture.get())));
|
| thread.clear();
|
| EXPECT_EQ(0, m_decodeRequestCount);
|
|
|
|
|