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

Unified Diff: src/gpu/vk/GrVkTexture.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/vk/GrVkStencilAttachment.cpp ('k') | src/gpu/vk/GrVkTexture.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkTexture.h
diff --git a/src/gpu/vk/GrVkTexture.h b/src/gpu/vk/GrVkTexture.h
index eae75ea1318862e855441c8be9db77dc5274d14f..de10a32b4c8ce2ce5707fe3a518b5722271c85a1 100644
--- a/src/gpu/vk/GrVkTexture.h
+++ b/src/gpu/vk/GrVkTexture.h
@@ -14,7 +14,7 @@
class GrVkGpu;
class GrVkImageView;
-struct GrVkTextureInfo;
+struct GrVkImageInfo;
class GrVkTexture : public GrTexture, public virtual GrVkImage {
public:
@@ -22,8 +22,7 @@ public:
const GrVkImage::ImageDesc&);
static GrVkTexture* CreateWrappedTexture(GrVkGpu*, const GrSurfaceDesc&,
- GrWrapOwnership,
- VkFormat, const GrVkTextureInfo*);
+ GrWrapOwnership, const GrVkImageInfo*);
~GrVkTexture() override;
@@ -36,12 +35,8 @@ public:
bool reallocForMipmap(const GrVkGpu* gpu, uint32_t mipLevels);
protected:
- GrVkTexture(GrVkGpu*, const GrSurfaceDesc&,
- const GrVkImage::Resource*, const GrVkImageView* imageView);
-
- template<typename ResourceType>
- static GrVkTexture* Create(GrVkGpu*, ResourceType, const GrSurfaceDesc&, VkFormat,
- const GrVkImage::Resource* texImpl);
+ GrVkTexture(GrVkGpu*, const GrSurfaceDesc&, const GrVkImageInfo&, const GrVkImageView*,
+ GrVkImage::Wrapped wrapped);
GrVkGpu* getVkGpu() const;
@@ -51,9 +46,9 @@ protected:
private:
enum Wrapped { kWrapped };
GrVkTexture(GrVkGpu*, SkBudgeted, const GrSurfaceDesc&,
- const GrVkImage::Resource*, const GrVkImageView* imageView);
+ const GrVkImageInfo&, const GrVkImageView* imageView);
GrVkTexture(GrVkGpu*, Wrapped, const GrSurfaceDesc&,
- const GrVkImage::Resource*, const GrVkImageView* imageView);
+ const GrVkImageInfo&, const GrVkImageView* imageView, GrVkImage::Wrapped wrapped);
const GrVkImageView* fTextureView;
const GrVkImageView* fLinearTextureView;
« no previous file with comments | « src/gpu/vk/GrVkStencilAttachment.cpp ('k') | src/gpu/vk/GrVkTexture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698