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

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: 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..d72f8bb8965851968c3af4bdb4292dd6d988c9c8 100644
--- a/content/browser/android/in_process/synchronous_compositor_impl.cc
+++ b/content/browser/android/in_process/synchronous_compositor_impl.cc
@@ -95,10 +95,9 @@ bool SynchronousCompositorImpl::InitializeHwDraw(
// Create contexts in this order so that the share group gets passed
// along correctly.
no sievers 2014/05/08 18:57:14 If you are removing this, then the comment does no
- 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.get());
bool success = output_surface_->InitializeHwDraw(onscreen_context);

Powered by Google App Engine
This is Rietveld 408576698