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

Side by Side Diff: content/renderer/gpu/delegated_compositor_output_surface.cc

Issue 1873783003: Convert //content/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
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_t routing_id, 11 int32_t routing_id,
12 uint32_t 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 #if defined(ENABLE_VULKAN) 15 #if defined(ENABLE_VULKAN)
16 const scoped_refptr<cc::VulkanContextProvider>& vulkan_context_provider, 16 const scoped_refptr<cc::VulkanContextProvider>& vulkan_context_provider,
17 #endif 17 #endif
18 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue) 18 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue)
19 : CompositorOutputSurface(routing_id, 19 : CompositorOutputSurface(routing_id,
20 output_surface_id, 20 output_surface_id,
21 context_provider, 21 context_provider,
22 worker_context_provider, 22 worker_context_provider,
23 #if defined(ENABLE_VULKAN) 23 #if defined(ENABLE_VULKAN)
24 vulkan_context_provider, 24 vulkan_context_provider,
25 #endif 25 #endif
26 scoped_ptr<cc::SoftwareOutputDevice>(), 26 std::unique_ptr<cc::SoftwareOutputDevice>(),
27 swap_frame_message_queue, 27 swap_frame_message_queue,
28 true) { 28 true) {
29 capabilities_.delegated_rendering = true; 29 capabilities_.delegated_rendering = true;
30 } 30 }
31 31
32 } // namespace content 32 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/compositor_output_surface.cc ('k') | content/renderer/gpu/frame_swap_message_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698