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

Unified Diff: gpu/vulkan/vulkan_swap_chain.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/vulkan/vulkan_swap_chain.h ('k') | media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/vulkan/vulkan_swap_chain.cc
diff --git a/gpu/vulkan/vulkan_swap_chain.cc b/gpu/vulkan/vulkan_swap_chain.cc
index c4e62295521e5e907e5a0fbfe3091a1fbd65c28b..7d11e82be351679e72f67ef5c7c5125f617018ee 100644
--- a/gpu/vulkan/vulkan_swap_chain.cc
+++ b/gpu/vulkan/vulkan_swap_chain.cc
@@ -41,7 +41,7 @@ gfx::SwapResult VulkanSwapChain::SwapBuffers() {
VkDevice device = device_queue_->GetVulkanDevice();
VkQueue queue = device_queue_->GetVulkanQueue();
- scoped_ptr<ImageData>& current_image_data = images_[current_image_];
+ std::unique_ptr<ImageData>& current_image_data = images_[current_image_];
// Default image subresource range.
VkImageSubresourceRange image_subresource_range = {};
@@ -190,7 +190,7 @@ bool VulkanSwapChain::InitializeSwapImages(
images_.resize(image_count);
for (uint32_t i = 0; i < image_count; ++i) {
images_[i].reset(new ImageData);
- scoped_ptr<ImageData>& image_data = images_[i];
+ std::unique_ptr<ImageData>& image_data = images_[i];
image_data->image = images[i];
// Setup semaphores.
@@ -258,7 +258,7 @@ void VulkanSwapChain::DestroySwapImages() {
next_present_semaphore_ = VK_NULL_HANDLE;
}
- for (const scoped_ptr<ImageData>& image_data : images_) {
+ for (const std::unique_ptr<ImageData>& image_data : images_) {
if (image_data->command_buffer) {
// Make sure command buffer is done processing.
image_data->command_buffer->Wait(UINT64_MAX);
« no previous file with comments | « gpu/vulkan/vulkan_swap_chain.h ('k') | media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698