| Index: content/browser/android/in_process/synchronous_compositor_output_surface.cc
|
| diff --git a/content/browser/android/in_process/synchronous_compositor_output_surface.cc b/content/browser/android/in_process/synchronous_compositor_output_surface.cc
|
| index cb237f0153041d04250cc0049a76d75354c1008a..26f7247ba3afe6c354b450a3e8de0204c151b800 100644
|
| --- a/content/browser/android/in_process/synchronous_compositor_output_surface.cc
|
| +++ b/content/browser/android/in_process/synchronous_compositor_output_surface.cc
|
| @@ -30,7 +30,10 @@ namespace content {
|
| namespace {
|
|
|
| scoped_ptr<webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl>
|
| -CreateWebGraphicsContext3D(scoped_refptr<gfx::GLSurface> surface) {
|
| +CreateWebGraphicsContext3D(
|
| + scoped_refptr<gfx::GLSurface> surface,
|
| + scoped_refptr<gpu::InProcessCommandBuffer::Service> service,
|
| + GLInProcessContext* share_context) {
|
| using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl;
|
| const gfx::GpuPreference gpu_preference = gfx::PreferDiscreteGpu;
|
|
|
| @@ -44,6 +47,8 @@ CreateWebGraphicsContext3D(scoped_refptr<gfx::GLSurface> surface) {
|
| attributes, &in_process_attribs);
|
| scoped_ptr<gpu::GLInProcessContext> context(
|
| gpu::GLInProcessContext::CreateWithSurface(surface,
|
| + service,
|
| + share_context,
|
| attributes.shareResources,
|
| in_process_attribs,
|
| gpu_preference));
|
| @@ -191,7 +196,9 @@ void AdjustTransform(gfx::Transform* transform, gfx::Rect viewport) {
|
|
|
| bool SynchronousCompositorOutputSurface::InitializeHwDraw(
|
| scoped_refptr<gfx::GLSurface> surface,
|
| - scoped_refptr<cc::ContextProvider> offscreen_context_provider) {
|
| + scoped_refptr<gpu::InProcessCommandBuffer::Service> service,
|
| + scoped_refptr<cc::ContextProvider> offscreen_context_provider,
|
| + gpu::GLInProcessContext* share_context) {
|
| DCHECK(CalledOnValidThread());
|
| DCHECK(HasClient());
|
| DCHECK(!context_provider_);
|
| @@ -199,7 +206,9 @@ bool SynchronousCompositorOutputSurface::InitializeHwDraw(
|
|
|
| scoped_refptr<cc::ContextProvider> onscreen_context_provider =
|
| webkit::gpu::ContextProviderInProcess::Create(
|
| - CreateWebGraphicsContext3D(surface), "SynchronousCompositor");
|
| + CreateWebGraphicsContext3D(
|
| + surface, service, share_context),
|
| + "SynchronousCompositor");
|
| return InitializeAndSetContext3d(onscreen_context_provider,
|
| offscreen_context_provider);
|
| }
|
|
|