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

Unified Diff: gpu/vulkan/vulkan_swap_chain.h

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_surface.cc ('k') | gpu/vulkan/vulkan_swap_chain.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/vulkan/vulkan_swap_chain.h
diff --git a/gpu/vulkan/vulkan_swap_chain.h b/gpu/vulkan/vulkan_swap_chain.h
index e084716f5f7f304e022bdee4fdb9b592938e50cf..08f39028dbcf2d4252044a6ff69d1f19d2e6d8f5 100644
--- a/gpu/vulkan/vulkan_swap_chain.h
+++ b/gpu/vulkan/vulkan_swap_chain.h
@@ -5,10 +5,10 @@
#ifndef GPU_VULKAN_VULKAN_SWAP_CHAIN_H_
#define GPU_VULKAN_VULKAN_SWAP_CHAIN_H_
+#include <memory>
#include <vector>
#include <vulkan/vulkan.h>
-#include "base/memory/scoped_ptr.h"
#include "gpu/vulkan/vulkan_export.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/swap_result.h"
@@ -64,7 +64,7 @@ class VulkanSwapChain {
VulkanDeviceQueue* device_queue_;
VkSwapchainKHR swap_chain_ = VK_NULL_HANDLE;
- scoped_ptr<VulkanCommandPool> command_pool_;
+ std::unique_ptr<VulkanCommandPool> command_pool_;
gfx::Size size_;
@@ -73,13 +73,13 @@ class VulkanSwapChain {
~ImageData();
VkImage image = VK_NULL_HANDLE;
- scoped_ptr<VulkanImageView> image_view;
- scoped_ptr<VulkanCommandBuffer> command_buffer;
+ std::unique_ptr<VulkanImageView> image_view;
+ std::unique_ptr<VulkanCommandBuffer> command_buffer;
VkSemaphore render_semaphore = VK_NULL_HANDLE;
VkSemaphore present_semaphore = VK_NULL_HANDLE;
};
- std::vector<scoped_ptr<ImageData>> images_;
+ std::vector<std::unique_ptr<ImageData>> images_;
uint32_t current_image_ = 0;
VkSemaphore next_present_semaphore_ = VK_NULL_HANDLE;
« no previous file with comments | « gpu/vulkan/vulkan_surface.cc ('k') | gpu/vulkan/vulkan_swap_chain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698