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

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

Issue 143023005: Support multiple service instances with GLInProcessContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 95289805afaedbf1cb546e0e713e6ad4362f7571..e8940aea24b66ed0d6749538fca5be41e16f97f7 100644
--- a/content/browser/android/in_process/synchronous_compositor_impl.cc
+++ b/content/browser/android/in_process/synchronous_compositor_impl.cc
@@ -83,11 +83,13 @@ void SynchronousCompositorImpl::SetClient(
}
bool SynchronousCompositorImpl::InitializeHwDraw(
- scoped_refptr<gfx::GLSurface> surface) {
+ scoped_refptr<gfx::GLSurface> surface,
+ scoped_refptr<gpu::InProcessCommandBuffer::Service> service) {
DCHECK(CalledOnValidThread());
DCHECK(output_surface_);
bool success = output_surface_->InitializeHwDraw(
surface,
+ service,
g_factory.Get().GetOffscreenContextProviderForCompositorThread());
if (success)
g_factory.Get().CompositorInitializedHardwareDraw();

Powered by Google App Engine
This is Rietveld 408576698