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

Issue 2418433002: Use gfx::Rect::Intersect() to clip for CopyTex{Sub}Image functions. (Closed)

Created:
4 years, 2 months ago by Zhenyao Mo
Modified:
4 years, 2 months ago
Reviewers:
piman
CC:
chromium-reviews, piman+watch_chromium.org, Ken Russell (switch to Gerrit), vmiura
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use gfx::Rect::Intersect() to clip for CopyTex{Sub}Image functions. Also, if after the clipping, the area is empty, then no need to process further for *Sub* functions - this gets rid of the overflow issues in the following numerical computation. BUG=654792, 654791 TEST=gpu_unittests,webgl_conformance,affected gpu_fuzzer R=piman@chromium.org 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 Committed: https://crrev.com/383d5dae3a02d516009ec4ae517e0a433877144f Cr-Commit-Position: refs/heads/master@{#424798}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -96 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 11 chunks +67 lines, -92 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 chunk +7 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 15 (9 generated)
Zhenyao Mo
piman: PTAL others: FYI
4 years, 2 months ago (2016-10-12 01:10:11 UTC) #4
piman
LGTM, thanks. This should also fix crbug.com/654791 (the CopyTexSubImage3D version), right?
4 years, 2 months ago (2016-10-12 17:43:13 UTC) #7
Zhenyao Mo
On 2016/10/12 17:43:13, piman wrote: > LGTM, thanks. This should also fix crbug.com/654791 (the CopyTexSubImage3D ...
4 years, 2 months ago (2016-10-12 17:48:39 UTC) #8
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/2418433002/1
4 years, 2 months ago (2016-10-12 17:52:05 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-12 18:36:06 UTC) #13
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 18:39:37 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/383d5dae3a02d516009ec4ae517e0a433877144f
Cr-Commit-Position: refs/heads/master@{#424798}

Powered by Google App Engine
This is Rietveld 408576698