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

Issue 2627213002: Tighten bounds on 3d clipping. (Closed)

Created:
3 years, 11 months ago by Peter Mayo
Modified:
3 years, 11 months ago
Reviewers:
flackr, danakj
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Tighten bounds on 3d clipping. We can only generate 6 points for even non-convex quads. It falls from the w component crossing 0 implies we have to remove at least one corner for each 2 we add. We can only do that twice. 4 -> 3+2 -> 2+4 -> 1+2. BUG=None CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2627213002 Cr-Commit-Position: refs/heads/master@{#443350} Committed: https://chromium.googlesource.com/chromium/src/+/61b5a492fc55a674d0df5d1eb65695118f39a2c3

Patch Set 1 #

Patch Set 2 : rebased #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -5 lines) Patch
M cc/base/math_util.h View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/base/math_util.cc View 1 3 chunks +3 lines, -3 lines 2 comments Download
M cc/quads/draw_polygon.cc View 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 15 (7 generated)
Peter Mayo
Another observation from staring at this code for too long.
3 years, 11 months ago (2017-01-12 01:56:46 UTC) #3
flackr
Also could probably work this out by the maximum number of branches hit by if ...
3 years, 11 months ago (2017-01-12 16:59:11 UTC) #5
danakj
https://codereview.chromium.org/2627213002/diff/20001/cc/base/math_util.cc File cc/base/math_util.cc (right): https://codereview.chromium.org/2627213002/diff/20001/cc/base/math_util.cc#newcode373 cc/base/math_util.cc:373: DCHECK_LE(*num_vertices_in_clipped_quad, 6); On 2017/01/12 16:59:11, flackr wrote: > I'm ...
3 years, 11 months ago (2017-01-12 17:01:20 UTC) #6
Peter Mayo
On 2017/01/12 17:01:20, danakj (slow) wrote: > https://codereview.chromium.org/2627213002/diff/20001/cc/base/math_util.cc > File cc/base/math_util.cc (right): > > https://codereview.chromium.org/2627213002/diff/20001/cc/base/math_util.cc#newcode373 ...
3 years, 11 months ago (2017-01-12 17:24:16 UTC) #7
flackr
On 2017/01/12 17:24:16, Peter Mayo wrote: > On 2017/01/12 17:01:20, danakj (slow) wrote: > > ...
3 years, 11 months ago (2017-01-12 18:29:43 UTC) #8
danakj
rs LGTM
3 years, 11 months ago (2017-01-12 18:46:44 UTC) #9
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/2627213002/20001
3 years, 11 months ago (2017-01-12 19:37:17 UTC) #12
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 20:45:56 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/61b5a492fc55a674d0df5d1eb656...

Powered by Google App Engine
This is Rietveld 408576698