| Index: content/renderer/render_thread_impl.cc
|
| diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
|
| index 5bb608c5964d0eada08d090b355c764e219ace47..a141f8fddb59d144449d45d599bbcdbdf0fc64f7 100644
|
| --- a/content/renderer/render_thread_impl.cc
|
| +++ b/content/renderer/render_thread_impl.cc
|
| @@ -1026,10 +1026,17 @@ RenderThreadImpl::CreateOffscreenContext3d() {
|
| GURL("chrome://gpu/RenderThreadImpl::CreateOffscreenContext3d")));
|
| }
|
|
|
| -scoped_refptr<ContextProviderCommandBuffer>
|
| +scoped_refptr<cc::ContextProvider>
|
| RenderThreadImpl::OffscreenContextProviderForMainThread() {
|
| DCHECK(IsMainThread());
|
|
|
| +#if defined(OS_ANDROID)
|
| + if (SynchronousCompositorFactory* factory =
|
| + SynchronousCompositorFactory::GetInstance()) {
|
| + return factory->GetOffscreenContextProviderForMainThread();
|
| + }
|
| +#endif
|
| +
|
| if (!shared_contexts_main_thread_.get() ||
|
| shared_contexts_main_thread_->DestroyedOnMainThread()) {
|
| shared_contexts_main_thread_ =
|
| @@ -1041,10 +1048,17 @@ RenderThreadImpl::OffscreenContextProviderForMainThread() {
|
| return shared_contexts_main_thread_;
|
| }
|
|
|
| -scoped_refptr<ContextProviderCommandBuffer>
|
| +scoped_refptr<cc::ContextProvider>
|
| RenderThreadImpl::OffscreenContextProviderForCompositorThread() {
|
| DCHECK(IsMainThread());
|
|
|
| +#if defined(OS_ANDROID)
|
| + if (SynchronousCompositorFactory* factory =
|
| + SynchronousCompositorFactory::GetInstance()) {
|
| + return factory->GetOffscreenContextProviderForCompositorThread();
|
| + }
|
| +#endif
|
| +
|
| if (!shared_contexts_compositor_thread_.get() ||
|
| shared_contexts_compositor_thread_->DestroyedOnMainThread()) {
|
| shared_contexts_compositor_thread_ =
|
|
|