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 |