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

Unified Diff: third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp

Issue 2550373005: Make WebTaskRunner ThreadSafeRefCounted (Closed)
Patch Set: +DISALLOW_COPY_AND_ASSIGN for win build fix Created 3 years, 11 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: 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,

Powered by Google App Engine
This is Rietveld 408576698