OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/renderer/gpu/delegated_compositor_output_surface.h" | 5 #include "content/renderer/gpu/delegated_compositor_output_surface.h" |
6 #include "content/renderer/gpu/frame_swap_message_queue.h" | 6 #include "content/renderer/gpu/frame_swap_message_queue.h" |
7 | 7 |
8 namespace content { | 8 namespace content { |
9 | 9 |
10 DelegatedCompositorOutputSurface::DelegatedCompositorOutputSurface( | 10 DelegatedCompositorOutputSurface::DelegatedCompositorOutputSurface( |
11 int32 routing_id, | 11 int32_t routing_id, |
12 uint32 output_surface_id, | 12 uint32_t output_surface_id, |
13 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, | 13 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, |
14 const scoped_refptr<ContextProviderCommandBuffer>& worker_context_provider, | 14 const scoped_refptr<ContextProviderCommandBuffer>& worker_context_provider, |
15 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue) | 15 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue) |
16 : CompositorOutputSurface(routing_id, | 16 : CompositorOutputSurface(routing_id, |
17 output_surface_id, | 17 output_surface_id, |
18 context_provider, | 18 context_provider, |
19 worker_context_provider, | 19 worker_context_provider, |
20 scoped_ptr<cc::SoftwareOutputDevice>(), | 20 scoped_ptr<cc::SoftwareOutputDevice>(), |
21 swap_frame_message_queue, | 21 swap_frame_message_queue, |
22 true) { | 22 true) { |
23 capabilities_.delegated_rendering = true; | 23 capabilities_.delegated_rendering = true; |
24 } | 24 } |
25 | 25 |
26 } // namespace content | 26 } // namespace content |
OLD | NEW |