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

Issue 1110093002: Avoid using SkPathEffect::DashInfo in GrStrokeInfo (Closed)

Created:
5 years, 7 months ago by Kimmo Kinnunen
Modified:
5 years, 7 months ago
Reviewers:
egdaniel
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@dashing-nvpr
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Avoid using SkPathEffect::DashInfo in GrStrokeInfo Avoid using SkPathEffect::DashInfo for storing the phase in GrStrokeInfo. Instead, just use normal instance variables. Fixes the copy constructor pointing the DashInfo interval pointer to the wrong interval data. Also fixes GrStrokeInfo::setDashInfo(const SkPathEffect::DashInfo&) by updating the fDashType correctly. Makes it simpler to write code such as the operator== in the future. Committed: https://skia.googlesource.com/skia/+/261694c98a4de4c67fb719e365c0345da0473a17

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 4

Patch Set 3 : address review comments #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -41 lines) Patch
M src/gpu/GrStrokeInfo.h View 1 2 3 7 chunks +42 lines, -30 lines 0 comments Download
M src/gpu/GrStrokeInfo.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download
M src/gpu/effects/GrDashingEffect.cpp View 1 2 5 chunks +11 lines, -10 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Kimmo Kinnunen
5 years, 7 months ago (2015-04-28 10:58:44 UTC) #2
egdaniel
just a couple nits https://codereview.chromium.org/1110093002/diff/20001/src/gpu/GrStrokeInfo.h File src/gpu/GrStrokeInfo.h (right): https://codereview.chromium.org/1110093002/diff/20001/src/gpu/GrStrokeInfo.h#newcode17 src/gpu/GrStrokeInfo.h:17: * width, miter, cap, and ...
5 years, 7 months ago (2015-04-28 14:45:29 UTC) #3
Kimmo Kinnunen
Thanks. How about now? https://codereview.chromium.org/1110093002/diff/20001/src/gpu/GrStrokeInfo.h File src/gpu/GrStrokeInfo.h (right): https://codereview.chromium.org/1110093002/diff/20001/src/gpu/GrStrokeInfo.h#newcode17 src/gpu/GrStrokeInfo.h:17: * width, miter, cap, and ...
5 years, 7 months ago (2015-05-04 06:08:07 UTC) #4
egdaniel
lgtm
5 years, 7 months ago (2015-05-04 13:23:34 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1110093002/60001
5 years, 7 months ago (2015-05-05 06:02:26 UTC) #7
commit-bot: I haz the power
5 years, 7 months ago (2015-05-05 15:00:16 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/261694c98a4de4c67fb719e365c0345da0473a17

Powered by Google App Engine
This is Rietveld 408576698