Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Issue 2337833002: Implement WEBGL_compressed_texture_s3tc_srgb (Closed)

Created:
4 years, 3 months ago by Kai Ninomiya
Modified:
4 years, 3 months ago
CC:
chromium-reviews, blink-reviews, piman+watch_chromium.org, haraken
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement WEBGL_compressed_texture_s3tc_srgb Enables support on non-ANGLE desktop platforms (Mac/Linux) and GLES platforms supporting NV_sRGB_formats (Tegra). This is tested by WebGL conformance test conformance/extensions/webgl-compressed-texture-s3tc-srgb.html BUG=630498 CQ_INCLUDE_TRYBOTS=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 TBR=haraken@chromium.org Committed: https://crrev.com/692194d1c8295d88a60230f24fee887026dae424 Cr-Commit-Position: refs/heads/master@{#419333}

Patch Set 1 : Implement WEBGL_compressed_texture_s3tc_srgb #

Total comments: 10

Patch Set 2 : address comments #

Patch Set 3 : re-rebase #

Patch Set 4 : replace NV_sRGB_formats with (draft) EXT_texture_compression_s3tc_srgb #

Total comments: 2

Patch Set 5 : a TODO + short copyright headers #

Patch Set 6 : add test and fix feature detection (enabled on webgl2, android/tegra) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -1 line) Patch
M gpu/command_buffer/service/feature_info.cc View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info_unittest.cc View 1 2 3 4 5 3 chunks +39 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 4 chunks +13 lines, -1 line 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules_idl_files.gni View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp View 4 chunks +4 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureS3TCsRGB.h View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureS3TCsRGB.cpp View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureS3TCsRGB.idl View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLExtensionName.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContext.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContext.cpp View 4 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 47 (25 generated)
Kai Ninomiya
4 years, 3 months ago (2016-09-13 23:40:34 UTC) #5
Kai Ninomiya
jbauman@chromium.org, vmiura@chromium.org: Please review changes in gpu/command_buffer/ kbr@chromium.org: Please review changes in webgl/ haraken@chromium.org: Please ...
4 years, 3 months ago (2016-09-13 23:47:09 UTC) #7
jbauman
https://codereview.chromium.org/2337833002/diff/20001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2337833002/diff/20001/gpu/command_buffer/service/feature_info.cc#newcode613 gpu/command_buffer/service/feature_info.cc:613: if ((have_s3tc || (enable_dxt1 && enable_dxt3 && enable_dxt5)) && ...
4 years, 3 months ago (2016-09-15 00:14:25 UTC) #12
Ken Russell (switch to Gerrit)
The WebGL-side changes look perfect. LGTM It would be good to mention in the commit ...
4 years, 3 months ago (2016-09-15 00:50:35 UTC) #13
Kai Ninomiya
https://codereview.chromium.org/2337833002/diff/20001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2337833002/diff/20001/gpu/command_buffer/service/feature_info.cc#newcode613 gpu/command_buffer/service/feature_info.cc:613: if ((have_s3tc || (enable_dxt1 && enable_dxt3 && enable_dxt5)) && ...
4 years, 3 months ago (2016-09-15 20:45:35 UTC) #15
Kai Ninomiya
Hang on, bad rebase.
4 years, 3 months ago (2016-09-15 20:47:50 UTC) #16
Kai Ninomiya
On 2016/09/15 20:47:50, Kai Ninomiya wrote: > Hang on, bad rebase. Never mind, it's fine.
4 years, 3 months ago (2016-09-15 20:57:39 UTC) #17
Kai Ninomiya
https://codereview.chromium.org/2337833002/diff/20001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2337833002/diff/20001/gpu/command_buffer/service/feature_info.cc#newcode632 gpu/command_buffer/service/feature_info.cc:632: GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT); On 2016/09/15 20:45:35, Kai Ninomiya wrote: > On ...
4 years, 3 months ago (2016-09-15 21:54:08 UTC) #18
Ken Russell (switch to Gerrit)
Thanks, still LGTM. https://codereview.chromium.org/2337833002/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureS3TCsRGB.cpp File third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureS3TCsRGB.cpp (right): https://codereview.chromium.org/2337833002/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureS3TCsRGB.cpp#newcode38 third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureS3TCsRGB.cpp:38: context->addCompressedTextureFormat(GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_NV); On 2016/09/15 21:54:08, Kai Ninomiya ...
4 years, 3 months ago (2016-09-15 23:38:27 UTC) #23
jbauman
Could you also add a test to feature_info_unittest.cc? Other than that (and the extension checking ...
4 years, 3 months ago (2016-09-16 00:25:29 UTC) #24
Ken Russell (switch to Gerrit)
On 2016/09/16 00:25:29, jbauman wrote: > Could you also add a test to feature_info_unittest.cc? > ...
4 years, 3 months ago (2016-09-16 00:31:14 UTC) #25
jbauman
On 2016/09/16 00:31:14, Ken Russell wrote: > On 2016/09/16 00:25:29, jbauman wrote: > > Could ...
4 years, 3 months ago (2016-09-16 00:37:16 UTC) #26
Kai Ninomiya
On 2016/09/16 00:37:16, jbauman wrote: > On 2016/09/16 00:31:14, Ken Russell wrote: > > On ...
4 years, 3 months ago (2016-09-16 00:49:51 UTC) #27
Kai Ninomiya
On 2016/09/16 00:49:51, Kai Ninomiya wrote: > On 2016/09/16 00:37:16, jbauman wrote: > > On ...
4 years, 3 months ago (2016-09-16 00:52:52 UTC) #28
Ken Russell (switch to Gerrit)
On 2016/09/16 00:52:52, Kai Ninomiya wrote: > On 2016/09/16 00:49:51, Kai Ninomiya wrote: > > ...
4 years, 3 months ago (2016-09-16 01:23:09 UTC) #29
Kai Ninomiya
On 2016/09/16 01:23:09, Ken Russell wrote: > On 2016/09/16 00:52:52, Kai Ninomiya wrote: > > ...
4 years, 3 months ago (2016-09-16 01:26:19 UTC) #30
Kai Ninomiya
jbauman, I updated the extension checking and added tests. How does this look to you?
4 years, 3 months ago (2016-09-16 23:45:58 UTC) #37
jbauman
On 2016/09/16 23:45:58, Kai Ninomiya wrote: > jbauman, I updated the extension checking and added ...
4 years, 3 months ago (2016-09-16 23:50:40 UTC) #38
Kai Ninomiya
TBRing haraken for change to modules_idl_files.gni
4 years, 3 months ago (2016-09-16 23:57:15 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2337833002/120001
4 years, 3 months ago (2016-09-16 23:58:00 UTC) #43
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 3 months ago (2016-09-17 00:03:39 UTC) #45
commit-bot: I haz the power
4 years, 3 months ago (2016-09-17 00:06:24 UTC) #47
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/692194d1c8295d88a60230f24fee887026dae424
Cr-Commit-Position: refs/heads/master@{#419333}

Powered by Google App Engine
This is Rietveld 408576698