OLD | NEW |
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_output_surfa
ce.h" | 8 #include "content/browser/android/in_process/synchronous_compositor_output_surfa
ce.h" |
9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
10 #include "content/renderer/gpu/frame_swap_message_queue.h" | 10 #include "content/renderer/gpu/frame_swap_message_queue.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 return record_full_layer_; | 174 return record_full_layer_; |
175 } | 175 } |
176 | 176 |
177 scoped_ptr<cc::OutputSurface> | 177 scoped_ptr<cc::OutputSurface> |
178 SynchronousCompositorFactoryImpl::CreateOutputSurface( | 178 SynchronousCompositorFactoryImpl::CreateOutputSurface( |
179 int routing_id, | 179 int routing_id, |
180 scoped_refptr<content::FrameSwapMessageQueue> frame_swap_message_queue) { | 180 scoped_refptr<content::FrameSwapMessageQueue> frame_swap_message_queue) { |
181 scoped_ptr<SynchronousCompositorOutputSurface> output_surface( | 181 scoped_ptr<SynchronousCompositorOutputSurface> output_surface( |
182 new SynchronousCompositorOutputSurface(routing_id, | 182 new SynchronousCompositorOutputSurface(routing_id, |
183 frame_swap_message_queue)); | 183 frame_swap_message_queue)); |
184 return output_surface.PassAs<cc::OutputSurface>(); | 184 return output_surface.Pass(); |
185 } | 185 } |
186 | 186 |
187 InputHandlerManagerClient* | 187 InputHandlerManagerClient* |
188 SynchronousCompositorFactoryImpl::GetInputHandlerManagerClient() { | 188 SynchronousCompositorFactoryImpl::GetInputHandlerManagerClient() { |
189 return synchronous_input_event_filter(); | 189 return synchronous_input_event_filter(); |
190 } | 190 } |
191 | 191 |
192 scoped_refptr<ContextProviderWebContext> | 192 scoped_refptr<ContextProviderWebContext> |
193 SynchronousCompositorFactoryImpl::CreateOffscreenContextProvider( | 193 SynchronousCompositorFactoryImpl::CreateOffscreenContextProvider( |
194 const blink::WebGraphicsContext3D::Attributes& attributes, | 194 const blink::WebGraphicsContext3D::Attributes& attributes, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 DCHECK(!service_.get()); | 289 DCHECK(!service_.get()); |
290 service_ = service; | 290 service_ = service; |
291 } | 291 } |
292 | 292 |
293 void SynchronousCompositorFactoryImpl::SetRecordFullDocument( | 293 void SynchronousCompositorFactoryImpl::SetRecordFullDocument( |
294 bool record_full_document) { | 294 bool record_full_document) { |
295 record_full_layer_ = record_full_document; | 295 record_full_layer_ = record_full_document; |
296 } | 296 } |
297 | 297 |
298 } // namespace content | 298 } // namespace content |
OLD | NEW |