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

Issue 2408203005: Add tests where we split near an edge. (Closed)

Created:
4 years, 2 months ago by Peter Mayo
Modified:
4 years, 2 months ago
Reviewers:
flackr, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add tests where we split near an edge. This exercises some corner cases where we have an edge along the thick plane by which we are splitting. CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/b5ec6f946eafcefff83e44d5e3b051c7f0fda814 Cr-Commit-Position: refs/heads/master@{#426244}

Patch Set 1 #

Patch Set 2 : Remove incorrect DCHECK assertion. #

Total comments: 2

Patch Set 3 : Fix Expectation syntax - truncating double error. #

Patch Set 4 : Fix Windows truncation error #

Total comments: 2

Patch Set 5 : Rebased #

Patch Set 6 : Undo windows problem avoidance #

Patch Set 7 : Convert ForTesting tests to function pointers #

Patch Set 8 : Convert to friend functions for testing functionality #

Patch Set 9 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -4 lines) Patch
M cc/quads/draw_polygon.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M cc/quads/draw_polygon.cc View 1 7 1 chunk +0 lines, -4 lines 0 comments Download
M cc/quads/draw_polygon_unittest.cc View 1 2 3 4 5 6 7 3 chunks +131 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (13 generated)
Peter Mayo
Wait for failing debug try runs ...
4 years, 2 months ago (2016-10-12 22:02:38 UTC) #3
flackr
Thanks for coming up with a good test. This assert has come up on my ...
4 years, 2 months ago (2016-10-13 18:42:26 UTC) #4
flackr
lgtm https://codereview.chromium.org/2408203005/diff/20001/cc/quads/draw_polygon_unittest.cc File cc/quads/draw_polygon_unittest.cc (right): https://codereview.chromium.org/2408203005/diff/20001/cc/quads/draw_polygon_unittest.cc#newcode379 cc/quads/draw_polygon_unittest.cc:379: #if !defined(OS_WIN) On 2016/10/13 at 18:42:26, flackr wrote: ...
4 years, 2 months ago (2016-10-13 18:49:30 UTC) #5
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/2408203005/60001
4 years, 2 months ago (2016-10-13 22:32:50 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/280815)
4 years, 2 months ago (2016-10-13 22:43:51 UTC) #10
Peter Mayo
PT An Owner's Look
4 years, 2 months ago (2016-10-13 23:02:21 UTC) #12
enne (OOO)
Seems reasonable, except https://codereview.chromium.org/2408203005/diff/60001/cc/quads/draw_polygon_unittest.cc File cc/quads/draw_polygon_unittest.cc (right): https://codereview.chromium.org/2408203005/diff/60001/cc/quads/draw_polygon_unittest.cc#newcode380 cc/quads/draw_polygon_unittest.cc:380: #if !defined(OS_WIN) These are well-formed polygons, ...
4 years, 2 months ago (2016-10-14 18:04:59 UTC) #15
flackr
https://codereview.chromium.org/2408203005/diff/60001/cc/quads/draw_polygon_unittest.cc File cc/quads/draw_polygon_unittest.cc (right): https://codereview.chromium.org/2408203005/diff/60001/cc/quads/draw_polygon_unittest.cc#newcode380 cc/quads/draw_polygon_unittest.cc:380: #if !defined(OS_WIN) On 2016/10/14 at 18:04:59, enne wrote: > ...
4 years, 2 months ago (2016-10-14 18:12:33 UTC) #16
enne (OOO)
(Yes, yes, I was joking about it not being well-formed on Windows, sorry.) Can you ...
4 years, 2 months ago (2016-10-14 18:29:47 UTC) #17
Peter Mayo
On 2016/10/14 18:29:47, enne wrote: > (Yes, yes, I was joking about it not being ...
4 years, 2 months ago (2016-10-14 18:50:41 UTC) #18
Peter Mayo
Rebased
4 years, 2 months ago (2016-10-14 18:51:26 UTC) #19
Peter Mayo
On 2016/10/14 18:51:26, Peter Mayo wrote: > Rebased From https://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_dbg_ng/builds/1715/steps/compile%20%28with%20patch%29/logs/stdio ...\src\cc\quads\draw_polygon_unittest.cc(39): warning C4273: 'cc::DrawPolygon::IsPlanarForTesting': inconsistent ...
4 years, 2 months ago (2016-10-14 19:26:27 UTC) #20
Peter Mayo
On 2016/10/14 19:26:27, Peter Mayo wrote: > On 2016/10/14 18:51:26, Peter Mayo wrote: > > ...
4 years, 2 months ago (2016-10-14 19:28:22 UTC) #21
enne (OOO)
Why is ComputeForTesting in both draw_polygon.cc and draw_polygon_unittest.cc? Is it possible to just move all ...
4 years, 2 months ago (2016-10-14 21:46:06 UTC) #22
Peter Mayo
On 2016/10/14 21:46:06, enne wrote: > Why is ComputeForTesting in both draw_polygon.cc and draw_polygon_unittest.cc? > ...
4 years, 2 months ago (2016-10-15 03:05:59 UTC) #23
Peter Mayo
On 2016/10/14 21:46:06, enne wrote: > Why is ComputeForTesting in both draw_polygon.cc and draw_polygon_unittest.cc? > ...
4 years, 2 months ago (2016-10-15 03:06:01 UTC) #24
enne (OOO)
Thanks for that cleanup. lgtm
4 years, 2 months ago (2016-10-17 20:24:22 UTC) #25
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/2408203005/150001
4 years, 2 months ago (2016-10-17 22:55:26 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_precise_blink_rel on master.tryserver.blink (JOB_TIMED_OUT, no build URL)
4 years, 2 months ago (2016-10-18 00:57:24 UTC) #30
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/2408203005/150001
4 years, 2 months ago (2016-10-19 16:52:58 UTC) #32
commit-bot: I haz the power
Committed patchset #9 (id:150001)
4 years, 2 months ago (2016-10-19 18:12:09 UTC) #33
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:10:13 UTC) #35
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/b5ec6f946eafcefff83e44d5e3b051c7f0fda814
Cr-Commit-Position: refs/heads/master@{#426244}

Powered by Google App Engine
This is Rietveld 408576698