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_; |
} |