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

Unified Diff: content/browser/android/in_process/synchronous_compositor_impl.cc

Issue 271763002: Clean up SyncCompositorFactory context creation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: inline Created 6 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: content/browser/android/in_process/synchronous_compositor_impl.cc
diff --git a/content/browser/android/in_process/synchronous_compositor_impl.cc b/content/browser/android/in_process/synchronous_compositor_impl.cc
index 89d919eb28228a332f6f10d5cdfbb570fd182cac..d424adcd36a3a8c6975b6d8562011849331deb97 100644
--- a/content/browser/android/in_process/synchronous_compositor_impl.cc
+++ b/content/browser/android/in_process/synchronous_compositor_impl.cc
@@ -93,12 +93,8 @@ bool SynchronousCompositorImpl::InitializeHwDraw(
DCHECK(CalledOnValidThread());
DCHECK(output_surface_);
- // Create contexts in this order so that the share group gets passed
- // along correctly.
- scoped_refptr<cc::ContextProvider> offscreen_context =
- g_factory.Get().GetOffscreenContextProviderForCompositorThread();
scoped_refptr<cc::ContextProvider> onscreen_context =
- g_factory.Get().CreateOnscreenContextProviderForCompositorThread(surface);
+ g_factory.Get().CreateOnscreenContextProviderForCompositorThread(surface);
bool success = output_surface_->InitializeHwDraw(onscreen_context);

Powered by Google App Engine
This is Rietveld 408576698