Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(554)

Side by Side Diff: cc/output/vulkan_renderer.h

Issue 2267263002: cc: Delete all the RendererCapabilities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-prepare-mailbox-param
Patch Set: renderer-caps: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/output/software_renderer.cc ('k') | cc/output/vulkan_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "cc/output/renderer.h" 10 #include "cc/output/renderer.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 Renderer functions. 25 // Implementation of public DirectRenderer functions.
26 const RendererCapabilitiesImpl& Capabilities() const override;
27 void SwapBuffers(const CompositorFrameMetadata& metadata) override; 26 void SwapBuffers(const CompositorFrameMetadata& metadata) override;
28 void ReceiveSwapBuffersAck(const CompositorFrameAck& ack) override; 27 void ReceiveSwapBuffersAck(const CompositorFrameAck& ack) override;
29 28
30 protected: 29 protected:
31 // Implementations of protected Renderer functions. 30 // Implementations of protected Renderer functions.
32 void DidChangeVisibility() override; 31 void DidChangeVisibility() override;
33 32
34 // Implementations of protected DirectRenderer functions. 33 // Implementations of protected DirectRenderer functions.
35 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; 34 void BindFramebufferToOutputSurface(DrawingFrame* frame) override;
36 bool BindFramebufferToTexture(DrawingFrame* frame, 35 bool BindFramebufferToTexture(DrawingFrame* frame,
(...skipping 11 matching lines...) Expand all
48 bool FlippedFramebuffer(const DrawingFrame* frame) const override; 47 bool FlippedFramebuffer(const DrawingFrame* frame) const override;
49 void EnsureScissorTestEnabled() override; 48 void EnsureScissorTestEnabled() override;
50 void EnsureScissorTestDisabled() override; 49 void EnsureScissorTestDisabled() override;
51 void DiscardBackbuffer() override; 50 void DiscardBackbuffer() override;
52 void EnsureBackbuffer() override; 51 void EnsureBackbuffer() override;
53 void CopyCurrentRenderPassToBitmap( 52 void CopyCurrentRenderPassToBitmap(
54 DrawingFrame* frame, 53 DrawingFrame* frame,
55 std::unique_ptr<CopyOutputRequest> request) override; 54 std::unique_ptr<CopyOutputRequest> request) override;
56 55
57 private: 56 private:
58 RendererCapabilitiesImpl capabilities_;
59
60 DISALLOW_COPY_AND_ASSIGN(VulkanRenderer); 57 DISALLOW_COPY_AND_ASSIGN(VulkanRenderer);
61 }; 58 };
62 59
63 } // namespace cc 60 } // namespace cc
64 61
65 #endif // CC_OUTPUT_VULKAN_RENDERER_H_ 62 #endif // CC_OUTPUT_VULKAN_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/software_renderer.cc ('k') | cc/output/vulkan_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698