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

Unified Diff: webkit/common/gpu/test_context_provider_factory.cc

Issue 16155009: Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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: webkit/common/gpu/test_context_provider_factory.cc
diff --git a/webkit/common/gpu/test_context_provider_factory.cc b/webkit/common/gpu/test_context_provider_factory.cc
index 69ae38576ac435b33fd71b0ce227c4b0fb72d64b..09017b606d6e17ae6ca55d4765b30366ee8618fb 100644
--- a/webkit/common/gpu/test_context_provider_factory.cc
+++ b/webkit/common/gpu/test_context_provider_factory.cc
@@ -26,9 +26,9 @@ TestContextProviderFactory::~TestContextProviderFactory() {}
scoped_refptr<cc::ContextProvider> TestContextProviderFactory::
OffscreenContextProviderForMainThread() {
- if (!main_thread_ || main_thread_->DestroyedOnMainThread()) {
+ if (!main_thread_.get() || main_thread_->DestroyedOnMainThread()) {
main_thread_ = ContextProviderInProcess::Create();
- if (main_thread_ && !main_thread_->BindToCurrentThread())
+ if (main_thread_.get() && !main_thread_->BindToCurrentThread())
main_thread_ = NULL;
}
return main_thread_;
@@ -36,8 +36,7 @@ scoped_refptr<cc::ContextProvider> TestContextProviderFactory::
scoped_refptr<cc::ContextProvider> TestContextProviderFactory::
OffscreenContextProviderForCompositorThread() {
- if (!compositor_thread_ ||
- compositor_thread_->DestroyedOnMainThread())
+ if (!compositor_thread_.get() || compositor_thread_->DestroyedOnMainThread())
compositor_thread_ = ContextProviderInProcess::Create();
return compositor_thread_;
}

Powered by Google App Engine
This is Rietveld 408576698