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

Issue 2043283002: Perform BSP polygon splitting and orientation selection in a single step. (Closed)

Created:
4 years, 6 months ago by Tobias Sargeant
Modified:
4 years, 5 months ago
Reviewers:
enne (OOO)
CC:
blink-reviews, cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Perform BSP polygon splitting and orientation selection in a single step. This eliminates redundant testing of vertices for orientation with respect to the splitting polygon. Previously, up to 3 sets of tests were made (once to determine whether the polygon was split, then once during the split, and then finally to determine the orientation of the split polygons. Merging these steps in order to reuse calculated values also eliminates the possibility that different calculations in testing and splitting could be inconsistent. BUG=606984 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/89c62c8f69d76471e866f21ee4f1ae5e0c5bca48 Committed: https://crrev.com/3e9082bfc63be6b304543ee499354fd71ea063ae Cr-Original-Commit-Position: refs/heads/master@{#399459} Cr-Commit-Position: refs/heads/master@{#403559}

Patch Set 1 #

Patch Set 2 : Update test expectations #

Total comments: 12

Patch Set 3 : Add DCHECKS, remove unnecessary methods from DrawPolygon #

Patch Set 4 : Re-add rebaselines #

Patch Set 5 : Speculative change to try to fix Win7 cc_unittests regression #

Patch Set 6 : rebase; update DCHECK #

Patch Set 7 : make AngledSplit test approximate #

Patch Set 8 : Make AngledSplit test sufficiently inexact; revert speculative change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -284 lines) Patch
M cc/output/bsp_tree.h View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/output/bsp_tree.cc View 1 2 2 chunks +16 lines, -43 lines 0 comments Download
M cc/output/bsp_tree_unittest.cc View 1 2 4 chunks +34 lines, -8 lines 0 comments Download
M cc/quads/draw_polygon.h View 1 2 1 chunk +4 lines, -7 lines 0 comments Download
M cc/quads/draw_polygon.cc View 1 2 3 4 5 6 7 3 chunks +140 lines, -181 lines 0 comments Download
M cc/quads/draw_polygon_unittest.cc View 1 2 3 4 5 6 7 11 chunks +74 lines, -36 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 1 chunk +3 lines, -5 lines 0 comments Download

Messages

Total messages: 29 (11 generated)
Tobias Sargeant
Hi Enne, Delving into this a bit deeper, I think it is actually a bit ...
4 years, 6 months ago (2016-06-08 17:27:45 UTC) #3
enne (OOO)
Can you also put up a patch without the test expectations so I can look ...
4 years, 6 months ago (2016-06-08 22:02:52 UTC) #4
Tobias Sargeant
https://codereview.chromium.org/2043283002/diff/20001/cc/quads/draw_polygon.cc File cc/quads/draw_polygon.cc (right): https://codereview.chromium.org/2043283002/diff/20001/cc/quads/draw_polygon.cc#newcode149 cc/quads/draw_polygon.cc:149: BspCompareResult DrawPolygon::SideCompare(const DrawPolygon& a, On 2016/06/08 22:02:51, enne wrote: ...
4 years, 6 months ago (2016-06-09 16:48:44 UTC) #5
enne (OOO)
lgtm https://codereview.chromium.org/2043283002/diff/20001/cc/quads/draw_polygon.cc File cc/quads/draw_polygon.cc (right): https://codereview.chromium.org/2043283002/diff/20001/cc/quads/draw_polygon.cc#newcode363 cc/quads/draw_polygon.cc:363: return false; On 2016/06/09 at 16:48:44, Tobias Sargeant ...
4 years, 6 months ago (2016-06-09 17:11:26 UTC) #6
Tobias Sargeant
Thanks. Can I assume that as all the try jobs are green, there's no need ...
4 years, 6 months ago (2016-06-09 18:20:53 UTC) #7
enne (OOO)
I added the *blink_rel trybots. If those are green, then you're good to go.
4 years, 6 months ago (2016-06-09 18:22:54 UTC) #8
Tobias Sargeant
On 2016/06/09 18:22:54, enne wrote: > I added the *blink_rel trybots. If those are green, ...
4 years, 6 months ago (2016-06-10 13:12:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2043283002/60001
4 years, 6 months ago (2016-06-13 13:25:36 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-13 15:48:08 UTC) #13
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-13 15:48:11 UTC) #14
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/89c62c8f69d76471e866f21ee4f1ae5e0c5bca48 Cr-Commit-Position: refs/heads/master@{#399459}
4 years, 6 months ago (2016-06-13 15:49:37 UTC) #16
enne (OOO)
Yeah, landing with rebaseline expectations was the right thing to do.
4 years, 6 months ago (2016-06-13 16:58:41 UTC) #17
Fady Samuel
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2060183003/ by fsamuel@chromium.org. ...
4 years, 6 months ago (2016-06-13 17:21:55 UTC) #18
enne (OOO)
lgtm to reland with some tolerance in the AngledSplit test.
4 years, 5 months ago (2016-07-01 18:40:51 UTC) #21
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/2043283002/160001
4 years, 5 months ago (2016-07-01 22:37:23 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 5 months ago (2016-07-01 23:18:58 UTC) #26
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-01 23:19:00 UTC) #27
commit-bot: I haz the power
4 years, 5 months ago (2016-07-01 23:20:42 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/3e9082bfc63be6b304543ee499354fd71ea063ae
Cr-Commit-Position: refs/heads/master@{#403559}

Powered by Google App Engine
This is Rietveld 408576698