Move the LATC and ETC1 enum values to GrPixelConfig. I also tried to put in checks in a few places to make sure that we weren't using these pixel configurations in places that we shouldn't be.

LATC is a DXT-esque alpha compression format that goes by a few other names (RGTC, 3DC). It might be useful to investigate using it to compress the alpha masks that we get from software rasterization. This patch set adds enums for that and recognition whether or not the device can support it.

R=bsalomon@google.com, robertphillips@google.com

Author: krajcevski@google.com

Review URL: https://codereview.chromium.org/304743004

git-svn-id: http://skia.googlecode.com/svn/trunk@14991 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/gl/GrGLDefines.h b/src/gpu/gl/GrGLDefines.h
index 58762e3..e2ddde8 100644
--- a/src/gpu/gl/GrGLDefines.h
+++ b/src/gpu/gl/GrGLDefines.h
@@ -238,6 +238,19 @@
 #define GR_GL_COMPRESSED_RGBA8_ETC2                0x9278
 #define GR_GL_COMPRESSED_SRGB8_ALPHA8_ETC2         0x9279
 
+#define GR_GL_COMPRESSED_LUMINANCE_LATC1           0x8C70
+#define GR_GL_COMPRESSED_SIGNED_LUMINANCE_LATC1    0x8C71
+#define GR_GL_COMPRESSED_LUMINANCE_ALPHA_LATC2     0x8C72
+#define GR_GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2 0x8C73
+
+#define GR_GL_COMPRESSED_RED_RGTC1                 0x8DBB
+#define GR_GL_COMPRESSED_SIGNED_RED_RGTC1          0x8DBC
+#define GR_GL_COMPRESSED_RED_GREEN_RGTC2           0x8DBD
+#define GR_GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2    0x8DBE
+
+#define GR_GL_COMPRESSED_3DC_X                     0x87F9
+#define GR_GL_COMPRESSED_3DC_XY                    0x87FA
+
 #define GR_GL_COMPRESSED_RGBA_BPTC_UNORM           0x8E8C
 #define GR_GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM     0x8E8D
 #define GR_GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT     0x8E8E