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

Issue 1522183002: only call scalar finite when necessary (Closed)

Created:
5 years ago by caryclark
Modified:
5 years ago
Reviewers:
reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

only call scalar finite when necessary Mike points that the the ulps compares rank high in path ops profiles. The check for finite scalars is rarely required. Call it less by: - specializing _pin version of compares - checking for 0 divides up front - handling failing cases before comparing - casting float to double before adding R=reed@google.com Committed: https://skia.googlesource.com/skia/+/b669300a9753893ef900207c38aeff2d467764e5

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -26 lines) Patch
M src/pathops/SkDLineIntersection.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/pathops/SkOpSegment.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M src/pathops/SkPathOpsLine.cpp View 2 chunks +4 lines, -1 line 0 comments Download
M src/pathops/SkPathOpsQuad.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M src/pathops/SkPathOpsTSect.h View 1 chunk +7 lines, -1 line 0 comments Download
M src/pathops/SkPathOpsTypes.h View 2 chunks +10 lines, -0 lines 1 comment Download
M src/pathops/SkPathOpsTypes.cpp View 9 chunks +31 lines, -19 lines 1 comment Download
M src/pathops/SkReduceOrder.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1522183002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1522183002/1
5 years ago (2015-12-14 20:47:17 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-14 21:06:00 UTC) #4
caryclark
PTAL
5 years ago (2015-12-15 13:15:19 UTC) #5
reed1
lgtm https://codereview.chromium.org/1522183002/diff/1/src/pathops/SkPathOpsTypes.cpp File src/pathops/SkPathOpsTypes.cpp (right): https://codereview.chromium.org/1522183002/diff/1/src/pathops/SkPathOpsTypes.cpp#newcode28 src/pathops/SkPathOpsTypes.cpp:28: static bool equal_ulps_pin(float a, float b, int epsilon, ...
5 years ago (2015-12-15 14:17:21 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1522183002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1522183002/1
5 years ago (2015-12-16 20:13:27 UTC) #8
commit-bot: I haz the power
5 years ago (2015-12-16 20:28:38 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/b669300a9753893ef900207c38aeff2d467764e5

Powered by Google App Engine
This is Rietveld 408576698