aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrTypes.h
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2017-09-08 14:46:23 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-08 19:58:18 +0000
commit21918231b25037f6ae98a9a431d9e107e8b29f08 (patch)
tree72664e6a811a5e3ccabedb44fd207f70a706170b /include/gpu/GrTypes.h
parent1170a553be35920fe45d6a454a27d21167060977 (diff)
Revert "Remove isMipMapped from GrSurfaceDesc" and follow up find exact scratch CL
This reverts commit 52cb5fe23b8f960bb3248620c8f4e2f2957b6685. This reverts commit e1fbf170580a4b932d0abcb11593fb1ef0cac60b. TBR:bsalomon@googole.com Bug: chromium:763333 Change-Id: Ie94e00c3c7231e32f009b9dc7bb51ebb53baf7b1 Reviewed-on: https://skia-review.googlesource.com/44400 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'include/gpu/GrTypes.h')
-rw-r--r--include/gpu/GrTypes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h
index 606fc00cb3..6ba9ffe429 100644
--- a/include/gpu/GrTypes.h
+++ b/include/gpu/GrTypes.h
@@ -594,7 +594,8 @@ struct GrSurfaceDesc {
, fWidth(0)
, fHeight(0)
, fConfig(kUnknown_GrPixelConfig)
- , fSampleCnt(0) {
+ , fSampleCnt(0)
+ , fIsMipMapped(false) {
}
GrSurfaceFlags fFlags; //!< bitfield of TextureFlags
@@ -616,6 +617,7 @@ struct GrSurfaceDesc {
* max supported count.
*/
int fSampleCnt;
+ bool fIsMipMapped; //!< Indicates if the texture has mipmaps
};
/**