aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-23 20:00:54 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-23 20:00:54 +0000
commit2dcd24375bacb2d581986b5f886ee40871eab6a4 (patch)
tree561fd8f04e8d2119d3f4fb2b7a73d6f85f539a18 /include
parent778873acdbb21fb979ba885b9a2f306f9beca739 (diff)
Add compressed texture capabilities for GPU devices
BUG=skia: R=bsalomon@google.com, robertphillips@google.com Author: krajcevski@google.com Review URL: https://codereview.chromium.org/292323003 git-svn-id: http://skia.googlecode.com/svn/trunk@14880 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-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;