aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2017-10-12 11:23:36 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-12 16:12:42 +0000
commit0fc4d2d269c0aff1eadf57da2e571d0d54c38f5a (patch)
treedaab2c8050304d504d014c5c93732d738c1f651b /include/private
parenta8c63075260337277d3ed405e97ba5ff89af3679 (diff)
Use enum to track MipMapsStatus throughout Texture creation
Bug: skia: Change-Id: I1de1105d74b45f7b02ff52e6b8333801d98ef1ce Reviewed-on: https://skia-review.googlesource.com/58501 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include/private')
-rw-r--r--include/private/GrTypesPriv.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/private/GrTypesPriv.h b/include/private/GrTypesPriv.h
index 04a0111744..bb3fe503c9 100644
--- a/include/private/GrTypesPriv.h
+++ b/include/private/GrTypesPriv.h
@@ -762,6 +762,15 @@ enum class GpuPathRenderers {
kDefault = kAll & ~kCoverageCounting,
};
+/**
+ * Used to describe the current state of Mips on a GrTexture
+ */
+enum class GrMipMapsStatus {
+ kNotAllocated, // Mips have not been allocated
+ kDirty, // Mips are allocated but the full mip tree does not have valid data
+ kValid, // All levels fully allocated and have valid data in them
+};
+
GR_MAKE_BITFIELD_CLASS_OPS(GpuPathRenderers)
#endif