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

Side by Side Diff: content/browser/android/in_process/synchronous_compositor_factory_impl.cc

Issue 1864373002: Remove unused features for in-process GL contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: inproclost: callback Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/android/in_process/synchronous_compositor_factory_impl .h" 5 #include "content/browser/android/in_process/synchronous_compositor_factory_impl .h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 gpu::GLInProcessContext* gl_in_process_context; 46 gpu::GLInProcessContext* gl_in_process_context;
47 }; 47 };
48 48
49 ContextHolder CreateContextHolder( 49 ContextHolder CreateContextHolder(
50 const gpu::gles2::ContextCreationAttribHelper& attributes, 50 const gpu::gles2::ContextCreationAttribHelper& attributes,
51 scoped_refptr<gpu::InProcessCommandBuffer::Service> service, 51 scoped_refptr<gpu::InProcessCommandBuffer::Service> service,
52 const gpu::GLInProcessContextSharedMemoryLimits& mem_limits) { 52 const gpu::GLInProcessContextSharedMemoryLimits& mem_limits) {
53 bool is_offscreen = true; 53 bool is_offscreen = true;
54 scoped_ptr<gpu::GLInProcessContext> context(gpu::GLInProcessContext::Create( 54 scoped_ptr<gpu::GLInProcessContext> context(gpu::GLInProcessContext::Create(
55 service, nullptr /* surface */, is_offscreen, gfx::kNullAcceleratedWidget, 55 service, nullptr /* surface */, is_offscreen, gfx::kNullAcceleratedWidget,
56 gfx::Size(1, 1), nullptr /* share_context */, false /* share_resources */, 56 gfx::Size(1, 1), nullptr /* share_context */, attributes,
57 attributes, gfx::PreferDiscreteGpu, mem_limits, 57 gfx::PreferDiscreteGpu, mem_limits,
58 BrowserGpuMemoryBufferManager::current(), nullptr)); 58 BrowserGpuMemoryBufferManager::current(), nullptr));
59 59
60 gpu::GLInProcessContext* context_ptr = context.get(); 60 gpu::GLInProcessContext* context_ptr = context.get();
61 61
62 ContextHolder holder; 62 ContextHolder holder;
63 holder.command_buffer = 63 holder.command_buffer =
64 scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl>( 64 scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl>(
65 WebGraphicsContext3DInProcessCommandBufferImpl::WrapContext( 65 WebGraphicsContext3DInProcessCommandBufferImpl::WrapContext(
66 std::move(context), attributes)); 66 std::move(context), attributes));
67 holder.gl_in_process_context = context_ptr; 67 holder.gl_in_process_context = context_ptr;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 DCHECK(!android_view_service_.get()); 267 DCHECK(!android_view_service_.get());
268 android_view_service_ = service; 268 android_view_service_ = service;
269 269
270 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 270 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
271 switches::kSingleProcess)) { 271 switches::kSingleProcess)) {
272 RenderThreadImpl::SetStreamTextureFactory(CreateStreamTextureFactory()); 272 RenderThreadImpl::SetStreamTextureFactory(CreateStreamTextureFactory());
273 } 273 }
274 } 274 }
275 275
276 } // namespace content 276 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698