Commit Graph
32 Commits
Author SHA1 Message Date
Ehsan Akhgari e324edc4f4 Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal.  I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

Differential Revision: https://phabricator.services.mozilla.com/D13073
2018-11-28 00:54:56 +00:00
Cosmin Sabou 93b37ad754 Backed out 2 changesets (bug 1508472) for causing build bustages on JobScheduler_posix.cpp. CLOSED TREE
Backed out changeset af951294cf96 (bug 1508472)
Backed out changeset 2320933cb7bc (bug 1508472)
2018-11-28 00:08:11 +02:00
Ehsan Akhgari 4856e65777 Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal.  I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

Differential Revision: https://phabricator.services.mozilla.com/D13073
2018-11-27 21:36:18 +00:00
Andreea Pavel dd8570ecf0 Backed out changeset 11d6688b953f (bug 1508472) for build bustages on a CLOSED TREE 2018-11-27 18:28:30 +02:00
Ehsan Akhgari facada215e Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal.  I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

Differential Revision: https://phabricator.services.mozilla.com/D13073
2018-11-27 15:18:32 +00:00
Robert Longson a8e64c0d79 Bug 1474284 - cope with degenerate bezier curves r=baz 2018-07-23 18:36:09 +01:00
Daniel Holbert bb0a8b6602 Bug 1412427 part 8: (automated patch) Switch a bunch of C++ files in gfx to use our standard mode lines. r=jrmuizel
This patch was generated automatically by the "modeline.py" script, available
here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py

For every file that is modified in this patch, the changes are as follows:
 (1) The patch changes the file to use the exact C++ mode lines from the
     Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

 (2) The patch deletes any blank lines between the mode line & the MPL
     boilerplate comment.

 (3) If the file previously had the mode lines and MPL boilerplate in a
     single contiguous C++ comment, then the patch splits them into
     separate C++ comments, to match the boilerplate in the coding style.

MozReview-Commit-ID: 77D61xpSmIl
2017-10-27 16:10:06 -07:00
Kevin Hsieh d149a3490d Bug 1322537 - Increase tolerance when splitting Bezier curves to prevent hang. r=bas
MozReview-Commit-ID: 3qhj9He65Bh
2017-07-28 23:57:04 -07:00
Sylvestre Ledru 576cac5ec7 Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL
2017-07-15 19:03:04 +02:00
Nicolas Silva d04de2ba4e Bug 1294969 - Path flattening should not skip the first inflection point if it is at t=0.0. r=Bas 2016-08-16 15:42:57 +02:00
Nicolas Silva 2849132143 Bug 1278512 - Fix bezier flattening when the inflection points are on the extremity of the curve. r=Bas 2016-06-07 16:51:44 +02:00
Nicolas Silva 1c5faefa18 Bug 1276068 - Correct the path flatness estimation computation. r=Bas 2016-05-31 12:34:17 +02:00
Tom Klein 87d4588729 Bug 1134549 - Switch FlattenBezier from floats to doubles. r=bas 2016-04-12 11:44:23 -05:00
Birunthan Mohanathas a29151dc87 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Lee Salzman f6e81a48e6 Bug 1167026 - Avoid division by zero when flattening a bezier curve segment with equal control points. r=bas 2015-06-02 10:47:15 -04:00
Jeff Muizelaar 10d82b8e5c Bug 1166879. Avoid uninitialized read in FlattenBezier. r=mstange
We only want to read from t2 if count is equal to 2.
Reordering this condition makes that true.
2015-05-20 16:01:23 -04:00
Daniel Holbert 18ce1bb0e9 Bug 1068603: Extend FlattenBezier to handle case where full path can be approximated by a linear segment. r=Bas 2015-01-02 14:46:53 -08:00
Daniel Holbert 760c87870c Bug 1073716: Use C++ std::abs() instead of C abs(), for non-'int'-typed values, to address clang warning. r=ehsan 2014-09-28 09:59:46 -07:00
Botond Ballo f4e48b3a62 Bug 1057642 - Revert [Int]::PointTyped::[x|y] to be of primitive type. r=kats 2014-08-28 12:45:48 -04:00
Botond Ballo 29e678a8e8 Bug 923512 - Introduce strongly-typed coordinate classes. r=kats,Bas 2014-08-19 13:08:16 -04:00
Bas Schouten 73a784dd4f Bug 992731: Correctly treat a 'line' as a curve with a single inflection point stretching across the entire line. r=jwatt 2014-05-31 03:13:23 +02:00
Bas Schouten 48526d26f1 Bug 999943 - Followup: Add requested comment. r=jwatt 2014-05-27 17:35:35 +02:00
Bas Schouten d7f848f0a8 Bug 999943: Correctly use the absolute value to determine min and max of the inflection range. r=jwatt 2014-05-27 17:03:34 +02:00
Bas Schouten 8ba7b48167 Bug 987077: Correctly deal with a constant acceleration. r=jwatt 2014-04-02 21:16:57 +01:00
Bas Schouten fd02898965 Bug 984796: Fix some small errors in path flattening code. r=jwatt 2014-03-22 18:40:58 +01:00
Phil Ringnalda c36364627a Back out 87e39d7d851a (bug 984796) for printfing like log size is infinite
CLOSED TREE
2014-03-21 19:49:15 -07:00
Bas Schouten 9ad4390dc2 Bug 984796: Fix some small errors in path flattening code. r=jwatt 2014-03-22 00:55:36 +01:00
Bas Schouten ef70c647cf Bug 960245: Deal with the final possibility for degeneracies in FindInflectionApproximationRange. r=jrmuizel 2014-01-16 21:39:19 +01:00
Bas Schouten def5706b85 Bug 941585: Better dealing with degenerate beziers. r=jrmuizel 2014-01-09 17:04:17 +01:00
Bas Schouten 03cd1d5403 Bug 946540: Deal with inflection points that all lie outside of (0, 1). r=jrmuizel 2013-12-13 15:22:37 +01:00
Jonathan Watt 6a76b35449 Bug 944704, part 1 - Extend Moz2D's ArcToBezier helper so that it can draw ellipse arcs in addition to circle arcs. r=Bas 2013-12-13 12:14:36 +00:00
Bas Schouten 269445c19b Bug 939049 - Part 2: Add generic ComputeLength code for backends with no such functionality. r=jrmuizel 2013-11-11 12:42:07 +13:00