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

Issue 1567723004: Fix handling of radii scaling to force the result to always be less (Closed)

Created:
4 years, 11 months ago by herb_g
Modified:
4 years, 11 months ago
Reviewers:
robertphillips, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix handling of radii scaling to force the result to always be less than a given side. BUG=472147 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1567723004 Committed: https://skia.googlesource.com/skia/+/f96bf1a2d091a917bb93f9e9a3a8d53bb39d068e

Patch Set 1 #

Patch Set 2 : revert tests. #

Patch Set 3 : remove spurious file. #

Patch Set 4 : Remove debugging code #

Patch Set 5 : fix near float problem #

Patch Set 6 : small clean up. #

Patch Set 7 : Get guard right. #

Patch Set 8 : use c++ only #

Patch Set 9 : fix nexttoward call. #

Patch Set 10 : make nexttowardf force long double to make old arm libraries work #

Patch Set 11 : use c99 version of nexttowardf. #

Patch Set 12 : make code clearer #

Total comments: 12

Patch Set 13 : address Robert's comments #

Patch Set 14 : Add assert. #

Patch Set 15 : Change to be less intrusive. #

Patch Set 16 : Change to be less intrusive. new file #

Patch Set 17 : Add fuzzing test. #

Patch Set 18 : Small cleanup. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -46 lines) Patch
M src/core/SkRRect.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +5 lines, -46 lines 0 comments Download
A src/core/SkScaleToSides.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +61 lines, -0 lines 0 comments Download
A tests/ScaleToSidesTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (18 generated)
herb_g
revert tests.
4 years, 11 months ago (2016-01-06 21:53:13 UTC) #2
herb_g
remove spurious file.
4 years, 11 months ago (2016-01-06 21:54:10 UTC) #3
herb_g
Remove debugging code
4 years, 11 months ago (2016-01-06 21:56:50 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1567723004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1567723004/60001
4 years, 11 months ago (2016-01-06 21:58:42 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86_64-Debug-Trybot/builds/5123)
4 years, 11 months ago (2016-01-06 21:59:25 UTC) #10
herb_g
fix near float problem
4 years, 11 months ago (2016-01-06 23:34:28 UTC) #11
herb_g
small clean up.
4 years, 11 months ago (2016-01-06 23:39:51 UTC) #12
herb_g
Get guard right.
4 years, 11 months ago (2016-01-06 23:45:06 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1567723004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1567723004/120001
4 years, 11 months ago (2016-01-06 23:45:39 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot/builds/5124) Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on ...
4 years, 11 months ago (2016-01-06 23:46:21 UTC) #17
herb_g
use c++ only
4 years, 11 months ago (2016-01-06 23:52:38 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1567723004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1567723004/140001
4 years, 11 months ago (2016-01-06 23:53:11 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Mips-Debug-Android-Trybot/builds/4366)
4 years, 11 months ago (2016-01-06 23:53:54 UTC) #22
herb_g
fix nexttoward call.
4 years, 11 months ago (2016-01-07 16:17:16 UTC) #23
herb_g
make nexttowardf force long double to make old arm libraries work
4 years, 11 months ago (2016-01-07 16:28:04 UTC) #24
herb_g
use c99 version of nexttowardf.
4 years, 11 months ago (2016-01-07 16:31:14 UTC) #25
herb_g
make code clearer
4 years, 11 months ago (2016-01-07 17:15:03 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1567723004/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1567723004/210001
4 years, 11 months ago (2016-01-07 17:22:15 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-07 17:42:19 UTC) #30
herb_g
I think this is ready for review. PTAL.
4 years, 11 months ago (2016-01-07 17:43:04 UTC) #31
robertphillips
https://codereview.chromium.org/1567723004/diff/210001/src/core/SkRRect.cpp File src/core/SkRRect.cpp (right): https://codereview.chromium.org/1567723004/diff/210001/src/core/SkRRect.cpp#newcode128 src/core/SkRRect.cpp:128: if ((double)*a + (double)*b > limit) { minRadius & ...
4 years, 11 months ago (2016-01-07 17:56:42 UTC) #32
robertphillips
I'm convinced - lgtm
4 years, 11 months ago (2016-01-07 18:10:41 UTC) #33
herb_g
address Robert's comments
4 years, 11 months ago (2016-01-07 18:40:03 UTC) #34
herb_g
Add assert.
4 years, 11 months ago (2016-01-07 18:45:09 UTC) #35
herb_g
https://codereview.chromium.org/1567723004/diff/210001/src/core/SkRRect.cpp File src/core/SkRRect.cpp (right): https://codereview.chromium.org/1567723004/diff/210001/src/core/SkRRect.cpp#newcode128 src/core/SkRRect.cpp:128: if ((double)*a + (double)*b > limit) { On 2016/01/07 ...
4 years, 11 months ago (2016-01-07 18:45:33 UTC) #36
reed1
lgtm
4 years, 11 months ago (2016-01-07 19:33:11 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1567723004/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1567723004/250001
4 years, 11 months ago (2016-01-07 19:33:18 UTC) #40
commit-bot: I haz the power
Committed patchset #14 (id:250001) as https://skia.googlesource.com/skia/+/f96bf1a2d091a917bb93f9e9a3a8d53bb39d068e
4 years, 11 months ago (2016-01-07 19:53:19 UTC) #42
herb_g
Iterate until in range.
4 years, 11 months ago (2016-01-07 21:39:01 UTC) #44
robertphillips
A revert of this CL (patchset #14 id:250001) has been created in https://codereview.chromium.org/1568063002/ by robertphillips@google.com. ...
4 years, 11 months ago (2016-01-07 22:17:07 UTC) #46
herb_g
Change to be less intrusive.
4 years, 11 months ago (2016-01-08 16:25:59 UTC) #47
herb_g
Change to be less intrusive. new file
4 years, 11 months ago (2016-01-08 16:27:56 UTC) #48
herb_g
Add fuzzing test.
4 years, 11 months ago (2016-01-08 18:30:12 UTC) #49
herb_g
Small cleanup.
4 years, 11 months ago (2016-01-08 19:02:47 UTC) #50
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1567723004/350001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1567723004/350001
4 years, 11 months ago (2016-01-08 19:07:12 UTC) #52
commit-bot: I haz the power
4 years, 11 months ago (2016-01-08 19:08:05 UTC) #54
Dry run: Try jobs failed on following builders:
  Build-Mac10.9-Clang-Arm7-Debug-iOS-Trybot on client.skia.compile (JOB_FAILED,
http://build.chromium.org/p/client.skia.compile/builders/Build-Mac10.9-Clang-...)
  Build-Ubuntu-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED,
http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x...)
  Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on client.skia.compile (JOB_FAILED,
http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm...)
  Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on client.skia.compile (JOB_FAILED,
http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Mip...)
  Build-Ubuntu-GCC-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED,
http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86...)

Powered by Google App Engine
This is Rietveld 408576698