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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.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/gpu/SharedGpuContext.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp b/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp
index e119ed746235ea24210e2e5a12f74cb2684cba26..734e1cbac1d2fa68898106861d17d6c84e4614f9 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp
@@ -57,7 +57,7 @@ void SharedGpuContext::createContextProviderIfNeeded() {
// SharedGpuContext encasulates the context provider: so we only have to do
// this once per thread.
WaitableEvent waitableEvent;
- WebTaskRunner* taskRunner =
+ RefPtr<WebTaskRunner> taskRunner =
Platform::current()->mainThread()->getWebTaskRunner();
taskRunner->postTask(
BLINK_FROM_HERE,
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/TextureHolder.h ('k') | third_party/WebKit/Source/platform/heap/GCTaskRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698