| Index: third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
|
| index e392678fa20ea8be19fcb136b59be0d3d308087a..a6d01a87f8ea97bd6a86f1d67ecccea72edefbf4 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
|
| @@ -169,7 +169,7 @@ void OffscreenCanvasFrameDispatcherImpl::
|
| namespace {
|
|
|
| void updatePlaceholderImage(WeakPtr<OffscreenCanvasFrameDispatcher> dispatcher,
|
| - std::unique_ptr<WebTaskRunner> taskRunner,
|
| + RefPtr<WebTaskRunner> taskRunner,
|
| int placeholderCanvasId,
|
| RefPtr<blink::StaticBitmapImage> image,
|
| unsigned resourceId) {
|
| @@ -253,8 +253,8 @@ void OffscreenCanvasFrameDispatcherImpl::dispatchFrame(
|
| // After this point, |image| can only be used on the main thread, until
|
| // it is returned.
|
| image->transfer();
|
| - std::unique_ptr<WebTaskRunner> dispatcherTaskRunner =
|
| - Platform::current()->currentThread()->getWebTaskRunner()->clone();
|
| + RefPtr<WebTaskRunner> dispatcherTaskRunner =
|
| + Platform::current()->currentThread()->getWebTaskRunner();
|
|
|
| Platform::current()->mainThread()->getWebTaskRunner()->postTask(
|
| BLINK_FROM_HERE,
|
|
|