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

Unified Diff: src/gpu/vk/GrVkTexture.h

Issue 1925303002: Add mipmap loading to Vulkan. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixes to handle mipmap allocations and autogen Created 4 years, 8 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
Index: src/gpu/vk/GrVkTexture.h
diff --git a/src/gpu/vk/GrVkTexture.h b/src/gpu/vk/GrVkTexture.h
index a5e82e866c42d462c0712cf88473a089d0ccb92e..be52c17a5ff39bb991f27a5056c4b832da97d0e9 100644
--- a/src/gpu/vk/GrVkTexture.h
+++ b/src/gpu/vk/GrVkTexture.h
@@ -33,7 +33,7 @@ public:
const GrVkImageView* textureView() const { return fTextureView; }
- bool reallocForMipmap(const GrVkGpu* gpu);
+ bool reallocForMipmap(const GrVkGpu* gpu, uint32_t mipLevels);
protected:
GrVkTexture(GrVkGpu*, const GrSurfaceDesc&,
@@ -41,7 +41,7 @@ protected:
template<typename ResourceType>
static GrVkTexture* Create(GrVkGpu*, ResourceType, const GrSurfaceDesc&, VkFormat,
- const GrVkImage::Resource* texImpl);
+ uint32_t levels, const GrVkImage::Resource* texImpl);
GrVkGpu* getVkGpu() const;
@@ -55,8 +55,7 @@ private:
GrVkTexture(GrVkGpu*, Wrapped, const GrSurfaceDesc&,
const GrVkImage::Resource*, const GrVkImageView* imageView);
-
- const GrVkImageView* fTextureView;
+ const GrVkImageView* fTextureView;
typedef GrTexture INHERITED;
};
« src/gpu/vk/GrVkGpu.cpp ('K') | « src/gpu/vk/GrVkImage.h ('k') | src/gpu/vk/GrVkTexture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698