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

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

Issue 2401923002: Added dummy definition for CanPartialSwap() in VulkanRenderer class
Patch Set: Created 4 years, 2 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 | « no previous file | 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 10
11 namespace cc { 11 namespace cc {
12 12
13 class TextureMailboxDeleter; 13 class TextureMailboxDeleter;
14 14
15 class CC_EXPORT VulkanRenderer : public DirectRenderer { 15 class CC_EXPORT VulkanRenderer : public DirectRenderer {
16 public: 16 public:
17 VulkanRenderer(const RendererSettings* settings, 17 VulkanRenderer(const RendererSettings* settings,
18 OutputSurface* output_surface, 18 OutputSurface* output_surface,
19 ResourceProvider* resource_provider, 19 ResourceProvider* resource_provider,
20 TextureMailboxDeleter* texture_mailbox_deleter, 20 TextureMailboxDeleter* texture_mailbox_deleter,
21 int highp_threshold_min); 21 int highp_threshold_min);
22 ~VulkanRenderer() override; 22 ~VulkanRenderer() override;
23 23
24 // Implementation of public DirectRenderer functions. 24 // Implementation of public DirectRenderer functions.
25 void SwapBuffers(const CompositorFrameMetadata& metadata) override; 25 void SwapBuffers(const CompositorFrameMetadata& metadata) override;
26 void ReceiveSwapBuffersAck(const CompositorFrameAck& ack) override; 26 void ReceiveSwapBuffersAck(const CompositorFrameAck& ack) override;
27 bool CanPartialSwap() override;
27 28
28 protected: 29 protected:
29 // Implementations of protected Renderer functions. 30 // Implementations of protected Renderer functions.
30 void DidChangeVisibility() override; 31 void DidChangeVisibility() override;
31 32
32 // Implementations of protected DirectRenderer functions. 33 // Implementations of protected DirectRenderer functions.
33 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; 34 void BindFramebufferToOutputSurface(DrawingFrame* frame) override;
34 bool BindFramebufferToTexture(DrawingFrame* frame, 35 bool BindFramebufferToTexture(DrawingFrame* frame,
35 const ScopedResource* resource) override; 36 const ScopedResource* resource) override;
36 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; 37 void SetScissorTestRect(const gfx::Rect& scissor_rect) override;
(...skipping 15 matching lines...) Expand all
52 DrawingFrame* frame, 53 DrawingFrame* frame,
53 std::unique_ptr<CopyOutputRequest> request) override; 54 std::unique_ptr<CopyOutputRequest> request) override;
54 55
55 private: 56 private:
56 DISALLOW_COPY_AND_ASSIGN(VulkanRenderer); 57 DISALLOW_COPY_AND_ASSIGN(VulkanRenderer);
57 }; 58 };
58 59
59 } // namespace cc 60 } // namespace cc
60 61
61 #endif // CC_OUTPUT_VULKAN_RENDERER_H_ 62 #endif // CC_OUTPUT_VULKAN_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/vulkan_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698