summaryrefslogtreecommitdiffstats
path: root/ui/gl
diff options
context:
space:
mode:
authorhendrikw <hendrikw@chromium.org>2014-12-01 19:30:40 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-02 03:31:22 +0000
commit83f2fb58e46d0dfcb264a5859cd59ddd714a67d7 (patch)
tree9f9c0b5193ade694333975bf6f603e4f9f571e2e /ui/gl
parent7b15ac05fa1e7be70ab1a8978d1c18b74610a677 (diff)
downloadchromium_src-83f2fb58e46d0dfcb264a5859cd59ddd714a67d7.zip
chromium_src-83f2fb58e46d0dfcb264a5859cd59ddd714a67d7.tar.gz
chromium_src-83f2fb58e46d0dfcb264a5859cd59ddd714a67d7.tar.bz2
gpu: Added the feature flag for GL_EXT_texture_rg to FeatureInfo
* GL_EXT_texture_rg & GL_ARB_texture_rg both add the extension GL_EXT_texture_rg * validators for GL_RED_EXT and GL_RG_EXT added for textures and read pixels * validators for GL_R8_EXT and GL_RG8_EXT added for render buffer * format validators added for unsigned byte, float (if supported) and half float (if supported) added * unit tests for EXT and ARB + validators * unit test to confirm that the extension is available on actual hardware BUG=435379 Review URL: https://codereview.chromium.org/751113002 Cr-Commit-Position: refs/heads/master@{#306337}
Diffstat (limited to 'ui/gl')
-rw-r--r--ui/gl/gl_bindings.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/gl/gl_bindings.h b/ui/gl/gl_bindings.h
index 595a31f..0d25bbe 100644
--- a/ui/gl/gl_bindings.h
+++ b/ui/gl/gl_bindings.h
@@ -272,6 +272,14 @@
#define GL_CONTEXT_LOST_KHR 0x0507
#endif /* GL_KHR_robustness */
+#ifndef GL_EXT_texture_rg
+#define GL_EXT_texture_rg 1
+#define GL_RED_EXT 0x1903
+#define GL_RG_EXT 0x8227
+#define GL_R8_EXT 0x8229
+#define GL_RG8_EXT 0x822B
+#endif /* GL_EXT_texture_rg */
+
#define GL_GLEXT_PROTOTYPES 1
#if defined(OS_WIN)