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

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

Issue 619843002: cc: Make separate interface for BeginFrame ipc from OutputSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/observer_list.h" 7 #include "base/observer_list.h"
8 #include "content/browser/android/in_process/synchronous_compositor_external_beg in_frame_source.h"
9 #include "content/browser/android/in_process/synchronous_compositor_impl.h"
8 #include "content/browser/android/in_process/synchronous_compositor_output_surfa ce.h" 10 #include "content/browser/android/in_process/synchronous_compositor_output_surfa ce.h"
9 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
10 #include "content/renderer/gpu/frame_swap_message_queue.h" 12 #include "content/renderer/gpu/frame_swap_message_queue.h"
11 #include "gpu/command_buffer/client/gl_in_process_context.h" 13 #include "gpu/command_buffer/client/gl_in_process_context.h"
12 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 14 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
13 #include "ui/gl/android/surface_texture.h" 15 #include "ui/gl/android/surface_texture.h"
14 #include "ui/gl/gl_surface.h" 16 #include "ui/gl/gl_surface.h"
15 #include "ui/gl/gl_surface_stub.h" 17 #include "ui/gl/gl_surface_stub.h"
16 #include "webkit/common/gpu/context_provider_in_process.h" 18 #include "webkit/common/gpu/context_provider_in_process.h"
17 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h" 19 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 new SynchronousCompositorOutputSurface(routing_id, 188 new SynchronousCompositorOutputSurface(routing_id,
187 frame_swap_message_queue)); 189 frame_swap_message_queue));
188 return output_surface.Pass(); 190 return output_surface.Pass();
189 } 191 }
190 192
191 InputHandlerManagerClient* 193 InputHandlerManagerClient*
192 SynchronousCompositorFactoryImpl::GetInputHandlerManagerClient() { 194 SynchronousCompositorFactoryImpl::GetInputHandlerManagerClient() {
193 return synchronous_input_event_filter(); 195 return synchronous_input_event_filter();
194 } 196 }
195 197
198 scoped_ptr<cc::BeginFrameSource>
199 SynchronousCompositorFactoryImpl::CreateExternalBeginFrameSource(
200 int routing_id) {
201 return make_scoped_ptr(
202 new SynchronousCompositorExternalBeginFrameSource(routing_id));
203 }
204
196 scoped_refptr<ContextProviderWebContext> 205 scoped_refptr<ContextProviderWebContext>
197 SynchronousCompositorFactoryImpl::CreateOffscreenContextProvider( 206 SynchronousCompositorFactoryImpl::CreateOffscreenContextProvider(
198 const blink::WebGraphicsContext3D::Attributes& attributes, 207 const blink::WebGraphicsContext3D::Attributes& attributes,
199 const std::string& debug_name) { 208 const std::string& debug_name) {
200 scoped_ptr<gpu::GLInProcessContext> context = 209 scoped_ptr<gpu::GLInProcessContext> context =
201 CreateOffscreenContext(attributes); 210 CreateOffscreenContext(attributes);
202 return webkit::gpu::ContextProviderInProcess::Create( 211 return webkit::gpu::ContextProviderInProcess::Create(
203 WrapContext(context.Pass()), debug_name); 212 WrapContext(context.Pass()), debug_name);
204 } 213 }
205 214
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 DCHECK(!service_.get()); 302 DCHECK(!service_.get());
294 service_ = service; 303 service_ = service;
295 } 304 }
296 305
297 void SynchronousCompositorFactoryImpl::SetRecordFullDocument( 306 void SynchronousCompositorFactoryImpl::SetRecordFullDocument(
298 bool record_full_document) { 307 bool record_full_document) {
299 record_full_layer_ = record_full_document; 308 record_full_layer_ = record_full_document;
300 } 309 }
301 310
302 } // namespace content 311 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698