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

Issue 1601103006: Add SkPath::isLastContourClosed() (Closed)

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

Description

Add SkPath::isLastContourClosed() Adds a simple method for checking if the last command/verb in the current contour is a 'close'. This will simplify determining "closedness" for blink::Path, and aid in the implementation of algorithms such as: https://drafts.fxtf.org/motion-1/#motion-processing (second item in list) GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1601103006 Committed: https://skia.googlesource.com/skia/+/b1475b0d41efc580207183a4e25d14e920b57360

Patch Set 1 #

Total comments: 4

Patch Set 2 : isClosed -> isLastContourClosed; add braces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -0 lines) Patch
M include/core/SkPath.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/core/SkPath.cpp View 1 1 chunk +8 lines, -0 lines 0 comments Download
M tests/PathTest.cpp View 1 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (9 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/1601103006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1601103006/1
4 years, 11 months ago (2016-01-19 17:24:58 UTC) #5
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 11 months ago (2016-01-19 17:24:59 UTC) #6
fs
PTAL, intended to replace cases such as: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/style/PathStyleMotionPath.cpp&sq=package:chromium&type=cs&l=18
4 years, 11 months ago (2016-01-19 17:34:36 UTC) #7
caryclark
looks fine -- Mike alone can approve the API change
4 years, 11 months ago (2016-01-19 17:56:23 UTC) #8
fs
On 2016/01/19 at 17:56:23, caryclark wrote: > looks fine -- Mike alone can approve the ...
4 years, 11 months ago (2016-01-20 15:41:20 UTC) #10
reed1
What is the motivation for the API? It doesn't look scary, but all query methods ...
4 years, 11 months ago (2016-01-20 16:08:03 UTC) #11
fs
On 2016/01/20 at 16:08:03, reed wrote: > What is the motivation for the API? It ...
4 years, 11 months ago (2016-01-20 16:22:04 UTC) #12
reed1
Thanks for the explanation. I think a link to the spec w/ a brief comment ...
4 years, 11 months ago (2016-01-20 16:41:41 UTC) #13
fs
On 2016/01/20 at 16:41:41, reed wrote: > Thanks for the explanation. I think a link ...
4 years, 11 months ago (2016-01-20 17:24:43 UTC) #16
reed1
lgtm
4 years, 11 months ago (2016-01-20 17:30:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1601103006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1601103006/20001
4 years, 11 months ago (2016-01-20 17:36:06 UTC) #19
commit-bot: I haz the power
4 years, 11 months ago (2016-01-20 17:51:11 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/b1475b0d41efc580207183a4e25d14e920b57360

Powered by Google App Engine
This is Rietveld 408576698