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

Side by Side Diff: src/gpu/GrStyle.h

Issue 2055253002: Add control over whether lines are special cased in SkDashPath. Disable when called from GrShape. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: update comments Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrShape.cpp ('k') | src/gpu/GrStyle.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrStyle_DEFINED 8 #ifndef GrStyle_DEFINED
9 #define GrStyle_DEFINED 9 #define GrStyle_DEFINED
10 10
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 } 194 }
195 void reset() { 195 void reset() {
196 fType = SkPathEffect::kNone_DashType; 196 fType = SkPathEffect::kNone_DashType;
197 fIntervals.reset(0); 197 fIntervals.reset(0);
198 } 198 }
199 SkPathEffect::DashType fType; 199 SkPathEffect::DashType fType;
200 SkScalar fPhase; 200 SkScalar fPhase;
201 SkAutoSTArray<4, SkScalar> fIntervals; 201 SkAutoSTArray<4, SkScalar> fIntervals;
202 }; 202 };
203 203
204 bool applyPathEffect(SkPath* dst, SkStrokeRec* strokeRec, const SkPath& src) const;
205
204 SkStrokeRec fStrokeRec; 206 SkStrokeRec fStrokeRec;
205 sk_sp<SkPathEffect> fPathEffect; 207 sk_sp<SkPathEffect> fPathEffect;
206 DashInfo fDashInfo; 208 DashInfo fDashInfo;
207 }; 209 };
208 210
209 #endif 211 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrShape.cpp ('k') | src/gpu/GrStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698