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

Issue 1925093002: Handle compressed textures allocated via TexStorage2D. (Closed)

Created:
4 years, 7 months ago by Ken Russell (switch to Gerrit)
Modified:
4 years, 7 months ago
Reviewers:
Zhenyao Mo
CC:
chromium-reviews, blink-reviews, piman+watch_chromium.org, haraken, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle compressed textures allocated via TexStorage2D. Compressed internal formats should be allowed as arguments to TexStorage2D. Textures allocated in this way are also cleared lazily, either just before the first CompressedTexSubImage2D if it does not cover the entire mipmap level, or if they're sampled. https://github.com/KhronosGroup/WebGL/pull/1641 expands the webgl-compressed-texture-s3tc.html conformance test to cover this behavior. BUG=605129 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/5e216d9b62275101c30f4a5cb2174bb68970ef3c Cr-Commit-Position: refs/heads/master@{#391139}

Patch Set 1 #

Patch Set 2 : Removed obsolete method and fixed tests. #

Total comments: 6

Patch Set 3 : Move IsCompressedTextureFormat into GLES2Decoder. #

Total comments: 2

Patch Set 4 : Fixed bug pointed out by zmo. #

Patch Set 5 : Fixed gpu_unittests after last refactor. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -48 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.h View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 chunks +77 lines, -26 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 2 1 chunk +36 lines, -21 lines 0 comments Download
M gpu/command_buffer/service/texture_manager_unittest.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 20 (9 generated)
Ken Russell (switch to Gerrit)
Mo: please review. The test changes in https://github.com/KhronosGroup/WebGL/pull/1641 cover the new code paths. Once that ...
4 years, 7 months ago (2016-04-28 14:25:17 UTC) #4
Zhenyao Mo
https://codereview.chromium.org/1925093002/diff/20001/gpu/command_buffer/common/gles2_cmd_utils.h File gpu/command_buffer/common/gles2_cmd_utils.h (right): https://codereview.chromium.org/1925093002/diff/20001/gpu/command_buffer/common/gles2_cmd_utils.h#newcode149 gpu/command_buffer/common/gles2_cmd_utils.h:149: static bool IsCompressedTextureFormat(int internal_format); You don't have to redefined ...
4 years, 7 months ago (2016-04-28 17:57:13 UTC) #5
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1925093002/diff/20001/gpu/command_buffer/common/gles2_cmd_utils.h File gpu/command_buffer/common/gles2_cmd_utils.h (right): https://codereview.chromium.org/1925093002/diff/20001/gpu/command_buffer/common/gles2_cmd_utils.h#newcode149 gpu/command_buffer/common/gles2_cmd_utils.h:149: static bool IsCompressedTextureFormat(int internal_format); On 2016/04/28 17:57:12, Zhenyao Mo ...
4 years, 7 months ago (2016-04-29 13:10:06 UTC) #6
Zhenyao Mo
https://codereview.chromium.org/1925093002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1925093002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode10573 gpu/command_buffer/service/gles2_cmd_decoder.cc:10573: glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); This should be bound_buffer->service_id()
4 years, 7 months ago (2016-04-29 17:15:16 UTC) #7
Zhenyao Mo
lgtm once the above mentioned bug is fixed.
4 years, 7 months ago (2016-04-29 17:22:17 UTC) #8
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1925093002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1925093002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode10573 gpu/command_buffer/service/gles2_cmd_decoder.cc:10573: glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); On 2016/04/29 17:15:16, Zhenyao Mo wrote: > ...
4 years, 7 months ago (2016-05-02 20:50:55 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925093002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925093002/60001
4 years, 7 months ago (2016-05-02 20:51:20 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/154144)
4 years, 7 months ago (2016-05-02 21:28:38 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925093002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925093002/80001
4 years, 7 months ago (2016-05-02 22:03:37 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-03 01:15:27 UTC) #18
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 01:18:08 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5e216d9b62275101c30f4a5cb2174bb68970ef3c
Cr-Commit-Position: refs/heads/master@{#391139}

Powered by Google App Engine
This is Rietveld 408576698