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

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

Issue 1974983002: Refactor Vulkan image, texture, RTs so that create and getter handles match. (Closed) Base URL: https://skia.googlesource.com/skia.git@fixLayerVersion
Patch Set: nits Created 4 years, 7 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/GrVkRenderTarget.cpp ('k') | src/gpu/vk/GrVkStencilAttachment.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrVkStencil_DEFINED 8 #ifndef GrVkStencil_DEFINED
9 #define GrVkStencil_DEFINED 9 #define GrVkStencil_DEFINED
10 10
(...skipping 11 matching lines...) Expand all
22 int fStencilBits; 22 int fStencilBits;
23 int fTotalBits; 23 int fTotalBits;
24 bool fPacked; 24 bool fPacked;
25 }; 25 };
26 26
27 static GrVkStencilAttachment* Create(GrVkGpu* gpu, int width, int height, 27 static GrVkStencilAttachment* Create(GrVkGpu* gpu, int width, int height,
28 int sampleCnt, const Format& format); 28 int sampleCnt, const Format& format);
29 29
30 ~GrVkStencilAttachment() override; 30 ~GrVkStencilAttachment() override;
31 31
32 const GrVkImage::Resource* imageResource() const { return this->resource(); } 32 const GrVkResource* imageResource() const { return this->resource(); }
33 const GrVkImageView* stencilView() const { return fStencilView; } 33 const GrVkImageView* stencilView() const { return fStencilView; }
34 34
35 VkFormat vkFormat() const { return fFormat.fInternalFormat; } 35 VkFormat vkFormat() const { return fFormat.fInternalFormat; }
36 36
37 protected: 37 protected:
38 void onRelease() override; 38 void onRelease() override;
39 void onAbandon() override; 39 void onAbandon() override;
40 40
41 private: 41 private:
42 size_t onGpuMemorySize() const override; 42 size_t onGpuMemorySize() const override;
43 43
44 GrVkStencilAttachment(GrVkGpu* gpu, 44 GrVkStencilAttachment(GrVkGpu* gpu,
45 const Format& format, 45 const Format& format,
46 const GrVkImage::ImageDesc&, 46 const GrVkImage::ImageDesc&,
47 const GrVkImage::Resource*, 47 const GrVkImageInfo&,
48 const GrVkImageView* stencilView); 48 const GrVkImageView* stencilView);
49 49
50 GrVkGpu* getVkGpu() const; 50 GrVkGpu* getVkGpu() const;
51 51
52 Format fFormat; 52 Format fFormat;
53 53
54 const GrVkImageView* fStencilView; 54 const GrVkImageView* fStencilView;
55 }; 55 };
56 56
57 #endif 57 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkRenderTarget.cpp ('k') | src/gpu/vk/GrVkStencilAttachment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698