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

Unified Diff: include/gpu/GrTypes.h

Issue 1249543003: Creating functions for uploading a mipmapped texture. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Rebasing. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/gpu/GrTextureProvider.h ('k') | src/core/SkImageCacherator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrTypes.h
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h
index 767e07206e990db701c3e30c6b95330304d6af2b..3def9aaa993df434948afe15cf8263d655f42776 100644
--- a/include/gpu/GrTypes.h
+++ b/include/gpu/GrTypes.h
@@ -8,9 +8,9 @@
#ifndef GrTypes_DEFINED
#define GrTypes_DEFINED
+#include "SkMath.h"
#include "SkTypes.h"
#include "GrConfig.h"
-#include "SkMath.h"
////////////////////////////////////////////////////////////////////////////////
@@ -425,6 +425,11 @@ enum GrSurfaceOrigin {
kBottomLeft_GrSurfaceOrigin,
};
+struct GrMipLevel {
+ const void* fPixels;
+ size_t fRowBytes;
+};
+
/**
* An container of function pointers which consumers of Skia can fill in and
* pass to Skia. Skia will use these function pointers in place of its backend
@@ -487,7 +492,8 @@ struct GrSurfaceDesc {
, fWidth(0)
, fHeight(0)
, fConfig(kUnknown_GrPixelConfig)
- , fSampleCnt(0) {
+ , fSampleCnt(0)
+ , fIsMipMapped(false) {
}
GrSurfaceFlags fFlags; //!< bitfield of TextureFlags
@@ -515,6 +521,8 @@ struct GrSurfaceDesc {
* usual texture creation method (e.g. TexImage2D in OpenGL).
*/
GrTextureStorageAllocator fTextureStorageAllocator;
+
+ bool fIsMipMapped; //!< Indicates if the texture has mipmaps
};
// Legacy alias
« no previous file with comments | « include/gpu/GrTextureProvider.h ('k') | src/core/SkImageCacherator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698