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

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

Issue 240163005: Deliver IPC messages together with SwapCompositorFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing doc Created 6 years, 7 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 | Annotate | Revision Log
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 "content/browser/android/in_process/synchronous_compositor_output_surfa ce.h" 7 #include "content/browser/android/in_process/synchronous_compositor_output_surfa ce.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "content/renderer/gpu/frame_swap_message_queue.h"
9 #include "gpu/command_buffer/client/gl_in_process_context.h" 10 #include "gpu/command_buffer/client/gl_in_process_context.h"
10 #include "ui/gl/android/surface_texture.h" 11 #include "ui/gl/android/surface_texture.h"
11 #include "ui/gl/gl_surface.h" 12 #include "ui/gl/gl_surface.h"
12 #include "ui/gl/gl_surface_stub.h" 13 #include "ui/gl/gl_surface_stub.h"
13 #include "webkit/common/gpu/context_provider_in_process.h" 14 #include "webkit/common/gpu/context_provider_in_process.h"
14 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h" 15 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h"
15 16
16 using webkit::gpu::ContextProviderWebContext; 17 using webkit::gpu::ContextProviderWebContext;
17 18
18 namespace content { 19 namespace content {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 } 138 }
138 139
139 SynchronousCompositorFactoryImpl::~SynchronousCompositorFactoryImpl() {} 140 SynchronousCompositorFactoryImpl::~SynchronousCompositorFactoryImpl() {}
140 141
141 scoped_refptr<base::MessageLoopProxy> 142 scoped_refptr<base::MessageLoopProxy>
142 SynchronousCompositorFactoryImpl::GetCompositorMessageLoop() { 143 SynchronousCompositorFactoryImpl::GetCompositorMessageLoop() {
143 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI); 144 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI);
144 } 145 }
145 146
146 scoped_ptr<cc::OutputSurface> 147 scoped_ptr<cc::OutputSurface>
147 SynchronousCompositorFactoryImpl::CreateOutputSurface(int routing_id) { 148 SynchronousCompositorFactoryImpl::CreateOutputSurface(
149 int routing_id,
150 scoped_refptr<content::FrameSwapMessageQueue> frame_swap_message_queue) {
148 scoped_ptr<SynchronousCompositorOutputSurface> output_surface( 151 scoped_ptr<SynchronousCompositorOutputSurface> output_surface(
149 new SynchronousCompositorOutputSurface(routing_id)); 152 new SynchronousCompositorOutputSurface(routing_id,
153 frame_swap_message_queue));
150 return output_surface.PassAs<cc::OutputSurface>(); 154 return output_surface.PassAs<cc::OutputSurface>();
151 } 155 }
152 156
153 InputHandlerManagerClient* 157 InputHandlerManagerClient*
154 SynchronousCompositorFactoryImpl::GetInputHandlerManagerClient() { 158 SynchronousCompositorFactoryImpl::GetInputHandlerManagerClient() {
155 return synchronous_input_event_filter(); 159 return synchronous_input_event_filter();
156 } 160 }
157 161
158 scoped_refptr<ContextProviderWebContext> SynchronousCompositorFactoryImpl:: 162 scoped_refptr<ContextProviderWebContext> SynchronousCompositorFactoryImpl::
159 GetSharedOffscreenContextProviderForMainThread() { 163 GetSharedOffscreenContextProviderForMainThread() {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 return video_context_provider_; 244 return video_context_provider_;
241 } 245 }
242 246
243 void SynchronousCompositorFactoryImpl::SetDeferredGpuService( 247 void SynchronousCompositorFactoryImpl::SetDeferredGpuService(
244 scoped_refptr<gpu::InProcessCommandBuffer::Service> service) { 248 scoped_refptr<gpu::InProcessCommandBuffer::Service> service) {
245 DCHECK(!service_); 249 DCHECK(!service_);
246 service_ = service; 250 service_ = service;
247 } 251 }
248 252
249 } // namespace content 253 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698