| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |