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

Side by Side Diff: cc/output/vulkan_renderer.cc

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase 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
« no previous file with comments | « cc/output/vulkan_renderer.h ('k') | cc/playback/clip_display_item.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 "cc/output/vulkan_renderer.h" 5 #include "cc/output/vulkan_renderer.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 scoped_ptr<VulkanRenderer> VulkanRenderer::Create( 9 std::unique_ptr<VulkanRenderer> VulkanRenderer::Create(
10 RendererClient* client, 10 RendererClient* client,
11 const RendererSettings* settings, 11 const RendererSettings* settings,
12 OutputSurface* output_surface, 12 OutputSurface* output_surface,
13 ResourceProvider* resource_provider, 13 ResourceProvider* resource_provider,
14 TextureMailboxDeleter* texture_mailbox_deleter, 14 TextureMailboxDeleter* texture_mailbox_deleter,
15 int highp_threshold_min) { 15 int highp_threshold_min) {
16 return scoped_ptr<VulkanRenderer>( 16 return std::unique_ptr<VulkanRenderer>(
17 new VulkanRenderer(client, settings, output_surface, resource_provider, 17 new VulkanRenderer(client, settings, output_surface, resource_provider,
18 texture_mailbox_deleter, highp_threshold_min)); 18 texture_mailbox_deleter, highp_threshold_min));
19 } 19 }
20 20
21 VulkanRenderer::~VulkanRenderer() {} 21 VulkanRenderer::~VulkanRenderer() {}
22 22
23 const RendererCapabilitiesImpl& VulkanRenderer::Capabilities() const { 23 const RendererCapabilitiesImpl& VulkanRenderer::Capabilities() const {
24 return capabilities_; 24 return capabilities_;
25 } 25 }
26 26
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void VulkanRenderer::DiscardBackbuffer() { 103 void VulkanRenderer::DiscardBackbuffer() {
104 NOTIMPLEMENTED(); 104 NOTIMPLEMENTED();
105 } 105 }
106 106
107 void VulkanRenderer::EnsureBackbuffer() { 107 void VulkanRenderer::EnsureBackbuffer() {
108 NOTIMPLEMENTED(); 108 NOTIMPLEMENTED();
109 } 109 }
110 110
111 void VulkanRenderer::CopyCurrentRenderPassToBitmap( 111 void VulkanRenderer::CopyCurrentRenderPassToBitmap(
112 DrawingFrame* frame, 112 DrawingFrame* frame,
113 scoped_ptr<CopyOutputRequest> request) { 113 std::unique_ptr<CopyOutputRequest> request) {
114 NOTIMPLEMENTED(); 114 NOTIMPLEMENTED();
115 } 115 }
116 116
117 } // namespace cc 117 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/vulkan_renderer.h ('k') | cc/playback/clip_display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698