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

Side by Side Diff: gpu/vulkan/vulkan_surface.cc

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 | « gpu/vulkan/vulkan_surface.h ('k') | gpu/vulkan/vulkan_swap_chain.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 "gpu/vulkan/vulkan_surface.h" 5 #include "gpu/vulkan/vulkan_surface.h"
6 6
7 #include <vulkan/vulkan.h> 7 #include <vulkan/vulkan.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "gpu/vulkan/vulkan_command_buffer.h" 10 #include "gpu/vulkan/vulkan_command_buffer.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 bool VulkanSurface::InitializeOneOff() { 151 bool VulkanSurface::InitializeOneOff() {
152 if (!InitializeVulkan()) 152 if (!InitializeVulkan())
153 return false; 153 return false;
154 154
155 return true; 155 return true;
156 } 156 }
157 157
158 VulkanSurface::~VulkanSurface() {} 158 VulkanSurface::~VulkanSurface() {}
159 159
160 // static 160 // static
161 scoped_ptr<VulkanSurface> VulkanSurface::CreateViewSurface( 161 std::unique_ptr<VulkanSurface> VulkanSurface::CreateViewSurface(
162 gfx::AcceleratedWidget window) { 162 gfx::AcceleratedWidget window) {
163 return scoped_ptr<VulkanSurface>(new VulkanWSISurface(window)); 163 return std::unique_ptr<VulkanSurface>(new VulkanWSISurface(window));
164 } 164 }
165 165
166 VulkanSurface::VulkanSurface() {} 166 VulkanSurface::VulkanSurface() {}
167 167
168 } // namespace gpu 168 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/vulkan/vulkan_surface.h ('k') | gpu/vulkan/vulkan_swap_chain.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698