aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrTypes.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-27 19:26:59 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-27 19:26:59 +0000
commit42dc8136914ee0777bb9110a5e04a75016687c0d (patch)
tree556d96d08181ccd0c0a4dacd8c92befb1fda2d9b /include/gpu/GrTypes.h
parent8bfcd721063955cddfcacf84e32d6d13b7fdd25d (diff)
Revert of Revert of Add compressed texture capabilities for GPU devices
(https://codereview.chromium.org/307543002/) Reason for revert: Re-landing the original CL, because the revert didn't fix things. See http://skbug.com/2608 ('RunDecodingTests failing on multiple platforms') Original issue's description: > Revert of Add compressed texture capabilities for GPU devices (https://codereview.chromium.org/292323003/) > > Reason for revert: > RunDecodingTests failing on multiple platforms. Please use trybots to validate and re-land. > > Original issue's description: > > Add compressed texture capabilities for GPU devices > > > > BUG=skia: > > > > Committed: http://code.google.com/p/skia/source/detail?r=14880 > > > > Committed: http://code.google.com/p/skia/source/detail?r=14901 > > TBR=bsalomon@google.com,robertphillips@google.com,krajcevski@google.com > NOTREECHECKS=true > NOTRY=true > BUG=skia: > > Committed: http://code.google.com/p/skia/source/detail?r=14902 R=bsalomon@google.com, robertphillips@google.com, krajcevski@google.com TBR=bsalomon@google.com, krajcevski@google.com, robertphillips@google.com NOTREECHECKS=true NOTRY=true BUG=skia: Author: epoger@google.com Review URL: https://codereview.chromium.org/302553008 git-svn-id: http://skia.googlecode.com/svn/trunk@14903 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu/GrTypes.h')
-rw-r--r--include/gpu/GrTypes.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h
index c1b3554c6e..5868a39e7d 100644
--- a/include/gpu/GrTypes.h
+++ b/include/gpu/GrTypes.h
@@ -620,6 +620,20 @@ 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 {
+ 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;