aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrTypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/GrTypes.h')
-rw-r--r--include/gpu/GrTypes.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h
index c1b3554c6e..67c8f87e76 100644
--- a/include/gpu/GrTypes.h
+++ b/include/gpu/GrTypes.h
@@ -620,6 +620,19 @@ enum GrGLBackendState {
};
/**
+ * The compressed texture formats that may be supported by the renderer.
+ * Make sure to check for the required capabilities using
+ * GrDrawTargetCaps::compressedTextureSupport
+ */
+enum GrCompressedFormat {
+ kUncompressed_GrCompressedFormat = -1,
+ kETC1_GrCompressedFormat = 0,
+
+ kLast_GrCompressedFormat = kETC1_GrCompressedFormat
+};
+static const size_t kCompressedFormatCount = kLast_GrCompressedFormat + 1;
+
+/**
* This value translates to reseting all the context state for any backend.
*/
static const uint32_t kAll_GrBackendState = 0xffffffff;