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

Issue 1951613002: Expand GrStyle's interface. (Closed)

Created:
4 years, 7 months ago by bsalomon
Modified:
4 years, 7 months ago
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@style
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Expand GrStyle's interface. Adds some basic getters on GrStyle as well as static const instances for fill and hairline. Adds the ability to apply a GrStyle to a SkPath to produce an output SkPath. Moves style key functions from GrShape to GrStyle. Also fixes some issues with SkPath creation when applying style to GrShapes. Adds tests that GrShape produces the correct SkPath when its GrStyle is applied. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1951613002 Committed: https://skia.googlesource.com/skia/+/fb08327e592a1dd19a0c3107243ccd01f6b7f848

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : rebase #

Patch Set 4 : comment cleanup #

Patch Set 5 : uncomment reporter_assert #

Patch Set 6 : remove unneeded zero dash length check #

Patch Set 7 : Remove GrStyle cons with initstyle override #

Total comments: 8

Patch Set 8 : Address comments #

Patch Set 9 : Don't use temp for stroke in GrShape::GrShape() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+368 lines, -223 lines) Patch
M src/gpu/GrShape.h View 2 chunks +3 lines, -29 lines 0 comments Download
M src/gpu/GrShape.cpp View 1 2 3 4 5 6 7 8 4 chunks +60 lines, -122 lines 0 comments Download
M src/gpu/GrStyle.h View 1 2 3 4 5 6 4 chunks +93 lines, -5 lines 0 comments Download
M src/gpu/GrStyle.cpp View 1 2 3 4 5 1 chunk +123 lines, -8 lines 0 comments Download
M tests/GrShapeTest.cpp View 1 2 3 4 20 chunks +89 lines, -59 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
bsalomon
This is preparation for replacing GrStrokeInfo with GrStyle.
4 years, 7 months ago (2016-05-03 22:47:30 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/1951613002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951613002/60001
4 years, 7 months ago (2016-05-03 23:59:43 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1951613002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951613002/120001
4 years, 7 months ago (2016-05-04 00:12:43 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-04 00:25:19 UTC) #10
egdaniel
https://codereview.chromium.org/1951613002/diff/120001/src/gpu/GrShape.cpp File src/gpu/GrShape.cpp (right): https://codereview.chromium.org/1951613002/diff/120001/src/gpu/GrShape.cpp#newcode201 src/gpu/GrShape.cpp:201: SkAssertResult(strokeRec.applyToPath(tmpPath.get(), *fPath.get())); can you not use fPath as both ...
4 years, 7 months ago (2016-05-04 13:49:38 UTC) #11
bsalomon
https://codereview.chromium.org/1951613002/diff/120001/src/gpu/GrShape.cpp File src/gpu/GrShape.cpp (right): https://codereview.chromium.org/1951613002/diff/120001/src/gpu/GrShape.cpp#newcode201 src/gpu/GrShape.cpp:201: SkAssertResult(strokeRec.applyToPath(tmpPath.get(), *fPath.get())); On 2016/05/04 13:49:37, egdaniel wrote: > can ...
4 years, 7 months ago (2016-05-04 14:29:17 UTC) #12
bsalomon
https://codereview.chromium.org/1951613002/diff/120001/src/gpu/GrShape.cpp File src/gpu/GrShape.cpp (right): https://codereview.chromium.org/1951613002/diff/120001/src/gpu/GrShape.cpp#newcode201 src/gpu/GrShape.cpp:201: SkAssertResult(strokeRec.applyToPath(tmpPath.get(), *fPath.get())); On 2016/05/04 14:29:17, bsalomon wrote: > On ...
4 years, 7 months ago (2016-05-04 14:56:20 UTC) #13
egdaniel
lgtm https://codereview.chromium.org/1951613002/diff/120001/src/gpu/GrStyle.cpp File src/gpu/GrStyle.cpp (right): https://codereview.chromium.org/1951613002/diff/120001/src/gpu/GrStyle.cpp#newcode143 src/gpu/GrStyle.cpp:143: *style = strokeRec.getStyle() == SkStrokeRec::kFill_Style On 2016/05/04 14:29:17, ...
4 years, 7 months ago (2016-05-04 15:01:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1951613002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951613002/160001
4 years, 7 months ago (2016-05-04 15:16:48 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-05-04 15:27:46 UTC) #18
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://skia.googlesource.com/skia/+/fb08327e592a1dd19a0c3107243ccd01f6b7f848

Powered by Google App Engine
This is Rietveld 408576698