From 42dc8136914ee0777bb9110a5e04a75016687c0d Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Tue, 27 May 2014 19:26:59 +0000 Subject: 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 --- include/gpu/GrTypes.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/gpu/GrTypes.h') 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 @@ -619,6 +619,20 @@ enum GrGLBackendState { kALL_GrGLBackendState = 0xffff }; +/** + * 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. */ -- cgit v1.2.3