Index: include/gpu/GrTypes.h |
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h |
index c1b3554c6e008eb322d18838618a53cbeeb54495..5868a39e7d22add6a914351a166d6d28e0d08188 100644 |
--- a/include/gpu/GrTypes.h |
+++ b/include/gpu/GrTypes.h |
@@ -620,6 +620,20 @@ |
}; |
/** |
+ * The compressed texture formats that may be supported by the renderer. |
+ * Make sure to check for the required capabilities using |
+ * GrDrawTargetCaps::compressedTextureSupport |
+ */ |
+enum GrCompressedFormat { |
+ kETC1_GrCompressedFormat, |
+ kETC2_GrCompressedFormat, |
+ kDXT1_GrCompressedFormat, |
+ |
+ kLast_GrCompressedFormat = kDXT1_GrCompressedFormat |
+}; |
+static const int kGrCompressedFormatCount = kLast_GrCompressedFormat + 1; |
+ |
+/** |
* This value translates to reseting all the context state for any backend. |
*/ |
static const uint32_t kAll_GrBackendState = 0xffffffff; |