hdr: Add color space parameter to glResizeCHROMIUM
The color space parameter to cc::OutputSurface::Reshape is not passed
along through to the glResizeCHROMIUM function because, until now, it
was not needed.
To dynamically switch in and out of HDR mode on Windows, we will need
to pass this parameter through to gl::GLSurface::Resize.
Add the argument to the GL function and add appropriate validation.
Pass the argument to gl::GLSurface::Resize, but do nothing with the
parameter.
This patch should have no functional effects.
R=zmo
TBR=hubbe (media/), raymes (ppapi/), bajones (vr_shell/) OWNERs
Bug: 575782
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Iaeba578d2163ff7c91e15664dfb080258a2c5871
Reviewed-on: https://chromium-review.googlesource.com/583782
Commit-Queue: ccameron chromium <[email protected]>
Reviewed-by: ccameron chromium <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
Cr-Commit-Position: refs/heads/master@{#489554}
diff --git a/ui/gl/gl_bindings.h b/ui/gl/gl_bindings.h
index 20e61626..def2b4a 100644
--- a/ui/gl/gl_bindings.h
+++ b/ui/gl/gl_bindings.h
@@ -166,6 +166,12 @@
// GL_CHROMIUM_texture_filtering_hint
#define GL_TEXTURE_FILTERING_HINT_CHROMIUM 0x8AF0
+// GL_CHROMIUM_resize
+#define GL_COLOR_SPACE_UNSPECIFIED_CHROMIUM 0x8AF1
+#define GL_COLOR_SPACE_SCRGB_LINEAR_CHROMIUM 0x8AF2
+#define GL_COLOR_SPACE_SRGB_CHROMIUM 0x8AF3
+#define GL_COLOR_SPACE_DISPLAY_P3_CHROMIUM 0x8AF4
+
// GL_OES_texure_3D
#define GL_SAMPLER_3D_OES 0x8B5F