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

Issue 1035943002: use new faster/vector impl for chopping conics (Closed)

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

Description

use new faster/vector impl for chopping conics BUG=skia: Committed: https://skia.googlesource.com/skia/+/55011038816a3fc7f0c0a39d482fb85347cc2e78

Patch Set 1 #

Total comments: 3

Patch Set 2 : fix bench #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -83 lines) Patch
M bench/PathBench.cpp View 1 3 chunks +11 lines, -44 lines 0 comments Download
M src/core/SkGeometry.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/core/SkGeometry.cpp View 1 chunk +5 lines, -22 lines 0 comments Download
M tests/GeometryTest.cpp View 2 chunks +0 lines, -16 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
reed1
no gm changes on my mac
5 years, 9 months ago (2015-03-26 15:15:01 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1035943002/1
5 years, 9 months ago (2015-03-26 15:15:15 UTC) #4
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 9 months ago (2015-03-26 15:15:16 UTC) #5
commit-bot: I haz the power
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/156)
5 years, 9 months ago (2015-03-26 15:16:35 UTC) #7
mtklein
https://codereview.chromium.org/1035943002/diff/1/src/core/SkGeometry.cpp File src/core/SkGeometry.cpp (right): https://codereview.chromium.org/1035943002/diff/1/src/core/SkGeometry.cpp#newcode1293 src/core/SkGeometry.cpp:1293: Sk2s scale = Sk2s(SkScalarInvert(SK_Scalar1 + fW)); Is SkScalarInvert faster ...
5 years, 9 months ago (2015-03-26 15:21:33 UTC) #8
reed1
https://codereview.chromium.org/1035943002/diff/1/src/core/SkGeometry.cpp File src/core/SkGeometry.cpp (right): https://codereview.chromium.org/1035943002/diff/1/src/core/SkGeometry.cpp#newcode1293 src/core/SkGeometry.cpp:1293: Sk2s scale = Sk2s(SkScalarInvert(SK_Scalar1 + fW)); On 2015/03/26 15:21:33, ...
5 years, 9 months ago (2015-03-26 15:24:41 UTC) #9
mtklein
lgtm This makes me we want to compare the cost of twice() then twice again ...
5 years, 9 months ago (2015-03-26 15:29:04 UTC) #10
reed1
On 2015/03/26 15:24:41, reed1 wrote: > https://codereview.chromium.org/1035943002/diff/1/src/core/SkGeometry.cpp > File src/core/SkGeometry.cpp (right): > > https://codereview.chromium.org/1035943002/diff/1/src/core/SkGeometry.cpp#newcode1293 > ...
5 years, 9 months ago (2015-03-26 15:29:17 UTC) #11
mtklein
On 2015/03/26 15:29:17, reed1 wrote: > On 2015/03/26 15:24:41, reed1 wrote: > > https://codereview.chromium.org/1035943002/diff/1/src/core/SkGeometry.cpp > ...
5 years, 9 months ago (2015-03-26 15:30:19 UTC) #12
mtklein
On 2015/03/26 15:30:19, mtklein wrote: > On 2015/03/26 15:29:17, reed1 wrote: > > On 2015/03/26 ...
5 years, 9 months ago (2015-03-26 15:32:20 UTC) #13
reed1
using inver() seems the same or a tiny bit slower. If it requires loading 1.0 ...
5 years, 9 months ago (2015-03-26 15:37:02 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1035943002/20001
5 years, 9 months ago (2015-03-26 15:37:26 UTC) #17
mtklein
On 2015/03/26 15:37:02, reed1 wrote: > using inver() seems the same or a tiny bit ...
5 years, 9 months ago (2015-03-26 15:46:04 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/55011038816a3fc7f0c0a39d482fb85347cc2e78
5 years, 9 months ago (2015-03-26 16:10:26 UTC) #19
mtklein
5 years, 9 months ago (2015-03-26 19:13:31 UTC) #20
Message was sent while issue was closed.
> This makes me we want to compare the cost of twice() then twice again later
vs.
> mul by 0.5f.  The twices can both be destructive, but the mul 0.5f needs
another
> register.

Just took a quick look at this.  Very minor if any effect.

Powered by Google App Engine
This is Rietveld 408576698