| 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 "content/browser/compositor/vulkan_browser_compositor_output_surface.h" | 5 #include "content/browser/compositor/vulkan_browser_compositor_output_surface.h" |
| 6 | 6 |
| 7 #include "base/threading/thread_task_runner_handle.h" |
| 7 #include "cc/output/output_surface_client.h" | 8 #include "cc/output/output_surface_client.h" |
| 8 #include "content/browser/renderer_host/render_widget_host_impl.h" | 9 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 9 #include "gpu/vulkan/vulkan_surface.h" | 10 #include "gpu/vulkan/vulkan_surface.h" |
| 10 | 11 |
| 11 namespace content { | 12 namespace content { |
| 12 | 13 |
| 13 VulkanBrowserCompositorOutputSurface::VulkanBrowserCompositorOutputSurface( | 14 VulkanBrowserCompositorOutputSurface::VulkanBrowserCompositorOutputSurface( |
| 14 scoped_refptr<cc::VulkanContextProvider> context, | 15 scoped_refptr<cc::VulkanContextProvider> context, |
| 15 const UpdateVSyncParametersCallback& update_vsync_parameters_callback) | 16 const UpdateVSyncParametersCallback& update_vsync_parameters_callback) |
| 16 : BrowserCompositorOutputSurface(std::move(context), | 17 : BrowserCompositorOutputSurface(std::move(context), |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 base::Bind(&VulkanBrowserCompositorOutputSurface::SwapBuffersAck, | 100 base::Bind(&VulkanBrowserCompositorOutputSurface::SwapBuffersAck, |
| 100 weak_ptr_factory_.GetWeakPtr())); | 101 weak_ptr_factory_.GetWeakPtr())); |
| 101 } | 102 } |
| 102 | 103 |
| 103 void VulkanBrowserCompositorOutputSurface::SwapBuffersAck() { | 104 void VulkanBrowserCompositorOutputSurface::SwapBuffersAck() { |
| 104 DCHECK(client_); | 105 DCHECK(client_); |
| 105 client_->DidReceiveSwapBuffersAck(); | 106 client_->DidReceiveSwapBuffersAck(); |
| 106 } | 107 } |
| 107 | 108 |
| 108 } // namespace content | 109 } // namespace content |
| OLD | NEW |