| 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 CC_OUTPUT_VULKAN_RENDERER_H_ | 5 #ifndef CC_OUTPUT_VULKAN_RENDERER_H_ |
| 6 #define CC_OUTPUT_VULKAN_RENDERER_H_ | 6 #define CC_OUTPUT_VULKAN_RENDERER_H_ |
| 7 | 7 |
| 8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/output/direct_renderer.h" | 9 #include "cc/output/direct_renderer.h" |
| 10 #include "ui/events/latency_info.h" | 10 #include "ui/events/latency_info.h" |
| 11 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 | 13 |
| 14 class TextureMailboxDeleter; | 14 class TextureMailboxDeleter; |
| 15 | 15 |
| 16 class CC_EXPORT VulkanRenderer : public DirectRenderer { | 16 class CC_EXPORT VulkanRenderer : public DirectRenderer { |
| 17 public: | 17 public: |
| 18 VulkanRenderer(const RendererSettings* settings, | 18 VulkanRenderer(const RendererSettings* settings, |
| 19 OutputSurface* output_surface, | 19 OutputSurface* output_surface, |
| 20 ResourceProvider* resource_provider, | 20 ResourceProvider* resource_provider, |
| 21 TextureMailboxDeleter* texture_mailbox_deleter, | 21 TextureMailboxDeleter* texture_mailbox_deleter, |
| 22 int highp_threshold_min); | 22 int highp_threshold_min); |
| 23 ~VulkanRenderer() override; | 23 ~VulkanRenderer() override; |
| 24 | 24 |
| 25 // Implementation of public DirectRenderer functions. | 25 // Implementation of public DirectRenderer functions. |
| 26 void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) override; | 26 void SwapBuffers(OutputSurfaceFrame output_frame) override; |
| 27 | 27 |
| 28 protected: | 28 protected: |
| 29 // Implementations of protected Renderer functions. | 29 // Implementations of protected Renderer functions. |
| 30 void DidChangeVisibility() override; | 30 void DidChangeVisibility() override; |
| 31 | 31 |
| 32 // Implementations of protected DirectRenderer functions. | 32 // Implementations of protected DirectRenderer functions. |
| 33 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; | 33 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; |
| 34 bool BindFramebufferToTexture(DrawingFrame* frame, | 34 bool BindFramebufferToTexture(DrawingFrame* frame, |
| 35 const ScopedResource* resource) override; | 35 const ScopedResource* resource) override; |
| 36 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; | 36 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 51 std::unique_ptr<CopyOutputRequest> request) override; | 51 std::unique_ptr<CopyOutputRequest> request) override; |
| 52 bool CanPartialSwap() override; | 52 bool CanPartialSwap() override; |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 DISALLOW_COPY_AND_ASSIGN(VulkanRenderer); | 55 DISALLOW_COPY_AND_ASSIGN(VulkanRenderer); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace cc | 58 } // namespace cc |
| 59 | 59 |
| 60 #endif // CC_OUTPUT_VULKAN_RENDERER_H_ | 60 #endif // CC_OUTPUT_VULKAN_RENDERER_H_ |
| OLD | NEW |