OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_COMPOSITOR_VULKAN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_VULKAN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "content/browser/compositor/browser_compositor_output_surface.h" |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class VulkanBrowserCompositorOutputSurface |
| 16 : public BrowserCompositorOutputSurface { |
| 17 public: |
| 18 VulkanBrowserCompositorOutputSurface( |
| 19 const scoped_refptr<cc::VulkanContextProvider>& context, |
| 20 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager); |
| 21 |
| 22 ~VulkanBrowserCompositorOutputSurface() override; |
| 23 |
| 24 // BrowserCompositorOutputSurface implementation. |
| 25 void OnGpuSwapBuffersCompleted( |
| 26 const std::vector<ui::LatencyInfo>& latency_info, |
| 27 gfx::SwapResult result) override; |
| 28 |
| 29 protected: |
| 30 // cc::OutputSurface implementation. |
| 31 void SwapBuffers(cc::CompositorFrame* frame) override; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(VulkanBrowserCompositorOutputSurface); |
| 34 }; |
| 35 |
| 36 } // namespace content |
| 37 |
| 38 #endif // CONTENT_BROWSER_COMPOSITOR_VULKAN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H
_ |
OLD | NEW |