| 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 "cc/output/vulkan_renderer.h" | 5 #include "cc/output/vulkan_renderer.h" |
| 6 | 6 |
| 7 namespace cc { | 7 namespace cc { |
| 8 | 8 |
| 9 scoped_ptr<VulkanRenderer> VulkanRenderer::Create( | 9 std::unique_ptr<VulkanRenderer> VulkanRenderer::Create( |
| 10 RendererClient* client, | 10 RendererClient* client, |
| 11 const RendererSettings* settings, | 11 const RendererSettings* settings, |
| 12 OutputSurface* output_surface, | 12 OutputSurface* output_surface, |
| 13 ResourceProvider* resource_provider, | 13 ResourceProvider* resource_provider, |
| 14 TextureMailboxDeleter* texture_mailbox_deleter, | 14 TextureMailboxDeleter* texture_mailbox_deleter, |
| 15 int highp_threshold_min) { | 15 int highp_threshold_min) { |
| 16 return scoped_ptr<VulkanRenderer>( | 16 return std::unique_ptr<VulkanRenderer>( |
| 17 new VulkanRenderer(client, settings, output_surface, resource_provider, | 17 new VulkanRenderer(client, settings, output_surface, resource_provider, |
| 18 texture_mailbox_deleter, highp_threshold_min)); | 18 texture_mailbox_deleter, highp_threshold_min)); |
| 19 } | 19 } |
| 20 | 20 |
| 21 VulkanRenderer::~VulkanRenderer() {} | 21 VulkanRenderer::~VulkanRenderer() {} |
| 22 | 22 |
| 23 const RendererCapabilitiesImpl& VulkanRenderer::Capabilities() const { | 23 const RendererCapabilitiesImpl& VulkanRenderer::Capabilities() const { |
| 24 return capabilities_; | 24 return capabilities_; |
| 25 } | 25 } |
| 26 | 26 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 void VulkanRenderer::DiscardBackbuffer() { | 103 void VulkanRenderer::DiscardBackbuffer() { |
| 104 NOTIMPLEMENTED(); | 104 NOTIMPLEMENTED(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 void VulkanRenderer::EnsureBackbuffer() { | 107 void VulkanRenderer::EnsureBackbuffer() { |
| 108 NOTIMPLEMENTED(); | 108 NOTIMPLEMENTED(); |
| 109 } | 109 } |
| 110 | 110 |
| 111 void VulkanRenderer::CopyCurrentRenderPassToBitmap( | 111 void VulkanRenderer::CopyCurrentRenderPassToBitmap( |
| 112 DrawingFrame* frame, | 112 DrawingFrame* frame, |
| 113 scoped_ptr<CopyOutputRequest> request) { | 113 std::unique_ptr<CopyOutputRequest> request) { |
| 114 NOTIMPLEMENTED(); | 114 NOTIMPLEMENTED(); |
| 115 } | 115 } |
| 116 | 116 |
| 117 } // namespace cc | 117 } // namespace cc |
| OLD | NEW |