Index: content/browser/android/in_process/synchronous_compositor_factory_impl.cc |
diff --git a/content/browser/android/in_process/synchronous_compositor_factory_impl.cc b/content/browser/android/in_process/synchronous_compositor_factory_impl.cc |
index 4a126dca304ad7b2af9e2b9a6f6ed386351ee93c..67b8727d677ab4292eab7c645f2c07cf9dcd1d35 100644 |
--- a/content/browser/android/in_process/synchronous_compositor_factory_impl.cc |
+++ b/content/browser/android/in_process/synchronous_compositor_factory_impl.cc |
@@ -81,9 +81,8 @@ SynchronousCompositorFactoryImpl::GetOffscreenContextProviderForMainThread() { |
// a compositor did successfully initialize hardware draw in the past. |
// In particular this does not guarantee that the main thread context |
// will fail creation when all compositors release hardware draw. |
- bool failed = !CanCreateMainThreadContext(); |
- if (!failed && |
- (!offscreen_context_for_main_thread_.get() || |
+ bool failed = false; |
+ if ((!offscreen_context_for_main_thread_.get() || |
offscreen_context_for_main_thread_->DestroyedOnMainThread())) { |
offscreen_context_for_main_thread_ = |
webkit::gpu::ContextProviderInProcess::Create( |