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

Side by Side Diff: src/gpu/vk/GrVkFramebuffer.h

Issue 1718693002: Add vulkan files into skia repo. (Closed) Base URL: https://skia.googlesource.com/skia.git@merge
Patch Set: fix path Created 4 years, 10 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 | « src/gpu/vk/GrVkDescriptorPool.cpp ('k') | src/gpu/vk/GrVkFramebuffer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef GrVkFramebuffer_DEFINED
9 #define GrVkFramebuffer_DEFINED
10
11 #include "GrTypes.h"
12
13 #include "GrVkResource.h"
14
15 #include "vulkan/vulkan.h"
16
17 class GrVkGpu;
18 class GrVkImageView;
19 class GrVkRenderPass;
20
21 class GrVkFramebuffer : public GrVkResource {
22 public:
23 static GrVkFramebuffer* Create(GrVkGpu* gpu,
24 int width, int height,
25 const GrVkRenderPass* renderPass,
26 const GrVkImageView* colorAttachment,
27 const GrVkImageView* resolveAttachment,
28 const GrVkImageView* stencilAttachment);
29
30 VkFramebuffer framebuffer() const { return fFramebuffer; }
31
32 private:
33 GrVkFramebuffer(VkFramebuffer framebuffer) : INHERITED(), fFramebuffer(frame buffer) {}
34
35 GrVkFramebuffer(const GrVkFramebuffer&);
36 GrVkFramebuffer& operator=(const GrVkFramebuffer&);
37
38 void freeGPUData(const GrVkGpu* gpu) const override;
39
40 VkFramebuffer fFramebuffer;
41
42 typedef GrVkResource INHERITED;
43 };
44
45 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkDescriptorPool.cpp ('k') | src/gpu/vk/GrVkFramebuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698