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

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

Issue 1408123005: Android Webview IPC-based sync compositing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win compile Created 5 years, 1 month 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "base/sys_info.h" 9 #include "base/sys_info.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
11 #include "content/browser/android/in_process/context_provider_in_process.h" 11 #include "content/browser/android/in_process/context_provider_in_process.h"
12 #include "content/browser/android/in_process/synchronous_compositor_impl.h" 12 #include "content/browser/android/in_process/synchronous_compositor_impl.h"
13 #include "content/browser/android/in_process/synchronous_compositor_registry_in_ proc.h" 13 #include "content/browser/android/in_process/synchronous_compositor_registry_in_ proc.h"
14 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" 14 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
15 #include "content/common/gpu/client/context_provider_command_buffer.h" 15 #include "content/common/gpu/client/context_provider_command_buffer.h"
16 #include "content/common/gpu/client/gpu_channel_host.h" 16 #include "content/common/gpu/client/gpu_channel_host.h"
17 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 17 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
18 #include "content/gpu/in_process_gpu_thread.h"
19 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
20 #include "content/public/common/content_switches.h" 19 #include "content/public/common/content_switches.h"
21 #include "content/renderer/android/synchronous_compositor_external_begin_frame_s ource.h" 20 #include "content/renderer/android/synchronous_compositor_external_begin_frame_s ource.h"
22 #include "content/renderer/android/synchronous_compositor_output_surface.h" 21 #include "content/renderer/android/synchronous_compositor_output_surface.h"
23 #include "content/renderer/gpu/frame_swap_message_queue.h" 22 #include "content/renderer/gpu/frame_swap_message_queue.h"
24 #include "content/renderer/render_thread_impl.h" 23 #include "content/renderer/render_thread_impl.h"
25 #include "gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h" 24 #include "gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h"
26 #include "gpu/command_buffer/client/gl_in_process_context.h" 25 #include "gpu/command_buffer/client/gl_in_process_context.h"
27 #include "gpu/command_buffer/client/gles2_interface.h" 26 #include "gpu/command_buffer/client/gles2_interface.h"
28 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 27 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 239 }
241 return video_context_provider_; 240 return video_context_provider_;
242 } 241 }
243 242
244 void SynchronousCompositorFactoryImpl::SetDeferredGpuService( 243 void SynchronousCompositorFactoryImpl::SetDeferredGpuService(
245 scoped_refptr<gpu::InProcessCommandBuffer::Service> service) { 244 scoped_refptr<gpu::InProcessCommandBuffer::Service> service) {
246 DCHECK(!android_view_service_.get()); 245 DCHECK(!android_view_service_.get());
247 android_view_service_ = service; 246 android_view_service_ = service;
248 } 247 }
249 248
250 base::Thread* SynchronousCompositorFactoryImpl::CreateInProcessGpuThread(
251 const InProcessChildThreadParams& params) {
252 DCHECK(android_view_service_.get());
253 return new InProcessGpuThread(params,
254 android_view_service_->sync_point_manager());
255 }
256
257 } // namespace content 249 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698