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

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

Issue 916723002: cc: Add threaded GPU rasterization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix SynchronousCompositor setup. Created 5 years, 10 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 e76b36b85be6b0e5698c9c5d4e4b12d82f50ad7a..fe7a1326c9c8ce6ab6bd2c7c585a1cdde7c5327a 100644
--- a/content/browser/android/in_process/synchronous_compositor_impl.cc
+++ b/content/browser/android/in_process/synchronous_compositor_impl.cc
@@ -154,7 +154,11 @@ bool SynchronousCompositorImpl::InitializeHwDraw() {
scoped_refptr<cc::ContextProvider> onscreen_context =
g_factory.Get().CreateOnscreenContextProviderForCompositorThread();
- bool success = output_surface_->InitializeHwDraw(onscreen_context);
+ scoped_refptr<cc::ContextProvider> worker_context =
+ g_factory.Get().CreateOnscreenContextProviderForCompositorThread();
boliu 2015/02/13 18:04:05 Is it possible/safe to key this off of a command l
vmiura 2015/02/13 19:52:34 We need it whenever GPU rasterization is enabled.
boliu 2015/02/13 20:25:52 Oh I thought the new context will only be used wit
+
+ bool success =
+ output_surface_->InitializeHwDraw(onscreen_context, worker_context);
if (success)
g_factory.Get().CompositorInitializedHardwareDraw();

Powered by Google App Engine
This is Rietveld 408576698