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

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

Issue 1827123002: Move content/common/gpu/client to gpu/ipc/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update 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"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/sys_info.h" 13 #include "base/sys_info.h"
14 #include "base/thread_task_runner_handle.h" 14 #include "base/thread_task_runner_handle.h"
15 #include "content/browser/android/in_process/context_provider_in_process.h" 15 #include "content/browser/android/in_process/context_provider_in_process.h"
16 #include "content/browser/android/in_process/synchronous_compositor_impl.h" 16 #include "content/browser/android/in_process/synchronous_compositor_impl.h"
17 #include "content/browser/android/in_process/synchronous_compositor_registry_in_ proc.h" 17 #include "content/browser/android/in_process/synchronous_compositor_registry_in_ proc.h"
18 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" 18 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
19 #include "content/common/gpu/client/context_provider_command_buffer.h" 19 #include "content/common/gpu/client/context_provider_command_buffer.h"
20 #include "content/common/gpu/client/gpu_channel_host.h"
21 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 20 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
22 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
23 #include "content/public/common/content_switches.h" 22 #include "content/public/common/content_switches.h"
24 #include "content/renderer/android/synchronous_compositor_external_begin_frame_s ource.h" 23 #include "content/renderer/android/synchronous_compositor_external_begin_frame_s ource.h"
25 #include "content/renderer/android/synchronous_compositor_output_surface.h" 24 #include "content/renderer/android/synchronous_compositor_output_surface.h"
26 #include "content/renderer/gpu/frame_swap_message_queue.h" 25 #include "content/renderer/gpu/frame_swap_message_queue.h"
27 #include "content/renderer/render_thread_impl.h" 26 #include "content/renderer/render_thread_impl.h"
28 #include "gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h" 27 #include "gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h"
29 #include "gpu/command_buffer/client/gl_in_process_context.h" 28 #include "gpu/command_buffer/client/gl_in_process_context.h"
30 #include "gpu/command_buffer/client/gles2_interface.h" 29 #include "gpu/command_buffer/client/gles2_interface.h"
31 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 30 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
31 #include "gpu/ipc/client/gpu_channel_host.h"
32 #include "ui/gl/android/surface_texture.h" 32 #include "ui/gl/android/surface_texture.h"
33 #include "ui/gl/gl_surface.h" 33 #include "ui/gl/gl_surface.h"
34 #include "ui/gl/gl_surface_stub.h" 34 #include "ui/gl/gl_surface_stub.h"
35 35
36 using cc_blink::ContextProviderWebContext; 36 using cc_blink::ContextProviderWebContext;
37 using gpu_blink::WebGraphicsContext3DImpl; 37 using gpu_blink::WebGraphicsContext3DImpl;
38 using gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl; 38 using gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl;
39 39
40 namespace content { 40 namespace content {
41 41
(...skipping 225 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
« no previous file with comments | « base/threading/thread_restrictions.h ('k') | content/browser/compositor/gpu_browser_compositor_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698