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

Issue 2875903002: Delete useless codes in gles2_cmd_copy_texture_chromium (Closed)

Created:
3 years, 7 months ago by jiajia.qin
Modified:
3 years, 7 months ago
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Delete useless code in gles2_cmd_copy_texture_chromium In GetFragmentShaderSource function, when calculate the TextureType, MAX_COLOR, InnerScaleValue and OuterScaleValue, we will check the dest_format/source_format is unsigned, signed or else to set the corresponding values for them. However, according to the spec, dest_format don't support signed integer and signed normalized fixed-point data. And source_format only support unsigned normalized fixed-point. In that case, we don't need those unreachable paths. Beside that, the old code had problems when converted from unsigned fixed-point to signed integer. BUG=612542 CQ_INCLUDE_TRYBOTS=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 Review-Url: https://codereview.chromium.org/2875903002 Cr-Commit-Position: refs/heads/master@{#472382} Committed: https://chromium.googlesource.com/chromium/src/+/f56cfdfce785ceb79ceb0264a20d0b117c694713

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add DCHECK for non integer format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -28 lines) Patch
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc View 1 1 chunk +8 lines, -28 lines 0 comments Download

Messages

Total messages: 25 (17 generated)
jiajia.qin
Please take a look. Thanks.
3 years, 7 months ago (2017-05-12 06:14:24 UTC) #9
Zhenyao Mo
https://codereview.chromium.org/2875903002/diff/1/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc File gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc (right): https://codereview.chromium.org/2875903002/diff/1/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode378 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:378: } else { Can we add a DCHECK here ...
3 years, 7 months ago (2017-05-12 18:00:44 UTC) #10
jiajia.qin
@Mo Please take another look. Thanks. https://codereview.chromium.org/2875903002/diff/1/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc File gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc (right): https://codereview.chromium.org/2875903002/diff/1/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode378 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:378: } else { ...
3 years, 7 months ago (2017-05-15 01:42:11 UTC) #15
Zhenyao Mo
On 2017/05/15 01:42:11, jiajia.qin wrote: > @Mo Please take another look. Thanks. > > https://codereview.chromium.org/2875903002/diff/1/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc ...
3 years, 7 months ago (2017-05-16 17:16:22 UTC) #16
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/2875903002/20001
3 years, 7 months ago (2017-05-17 01:00:12 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/446595)
3 years, 7 months ago (2017-05-17 07:20:12 UTC) #20
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/2875903002/20001
3 years, 7 months ago (2017-05-17 07:21:45 UTC) #22
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 08:21:19 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f56cfdfce785ceb79ceb0264a20d...

Powered by Google App Engine
This is Rietveld 408576698