Chromium Code Reviews| Index: include/gpu/GrTypes.h |
| diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h |
| index c1b3554c6e008eb322d18838618a53cbeeb54495..67c8f87e762f24368f7a44b2cd7737e270c415f5 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 |
|
bsalomon
2014/05/23 13:40:04
Maybe we should throw the 8bit index format in her
krajcevski
2014/05/23 15:11:46
For paletted textures, OpenGL ES uses glCompressed
|
| + */ |
| +enum GrCompressedFormat { |
| + kUncompressed_GrCompressedFormat = -1, |
|
bsalomon
2014/05/23 13:40:04
Is this used anywhere? Or is it related to a comin
krajcevski
2014/05/23 15:11:46
It will be used to denote uncompressed textures in
|
| + 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; |