| 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 #ifndef GPU_VULKAN_VULKAN_SURFACE_H_ | 5 #ifndef GPU_VULKAN_VULKAN_SURFACE_H_ |
| 6 #define GPU_VULKAN_VULKAN_SURFACE_H_ | 6 #define GPU_VULKAN_VULKAN_SURFACE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include <memory> |
| 9 |
| 9 #include "gpu/vulkan/vulkan_export.h" | 10 #include "gpu/vulkan/vulkan_export.h" |
| 10 #include "ui/gfx/geometry/size.h" | 11 #include "ui/gfx/geometry/size.h" |
| 11 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
| 12 #include "ui/gfx/swap_result.h" | 13 #include "ui/gfx/swap_result.h" |
| 13 | 14 |
| 14 namespace gpu { | 15 namespace gpu { |
| 15 | 16 |
| 16 class VulkanDeviceQueue; | 17 class VulkanDeviceQueue; |
| 17 class VulkanSwapChain; | 18 class VulkanSwapChain; |
| 18 | 19 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 35 VulkanSurface::Format format) = 0; | 36 VulkanSurface::Format format) = 0; |
| 36 virtual void Destroy() = 0; | 37 virtual void Destroy() = 0; |
| 37 | 38 |
| 38 virtual gfx::SwapResult SwapBuffers() = 0; | 39 virtual gfx::SwapResult SwapBuffers() = 0; |
| 39 | 40 |
| 40 virtual VulkanSwapChain* GetSwapChain() = 0; | 41 virtual VulkanSwapChain* GetSwapChain() = 0; |
| 41 | 42 |
| 42 virtual void Finish() = 0; | 43 virtual void Finish() = 0; |
| 43 | 44 |
| 44 // Create a surface that render directlys into a surface. | 45 // Create a surface that render directlys into a surface. |
| 45 static scoped_ptr<VulkanSurface> CreateViewSurface( | 46 static std::unique_ptr<VulkanSurface> CreateViewSurface( |
| 46 gfx::AcceleratedWidget window); | 47 gfx::AcceleratedWidget window); |
| 47 | 48 |
| 48 protected: | 49 protected: |
| 49 VulkanSurface(); | 50 VulkanSurface(); |
| 50 | 51 |
| 51 private: | 52 private: |
| 52 DISALLOW_COPY_AND_ASSIGN(VulkanSurface); | 53 DISALLOW_COPY_AND_ASSIGN(VulkanSurface); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace gpu | 56 } // namespace gpu |
| 56 | 57 |
| 57 #endif // GPU_VULKAN_VULKAN_SURFACE_H_ | 58 #endif // GPU_VULKAN_VULKAN_SURFACE_H_ |
| OLD | NEW |