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

Side by Side Diff: include/core/SkStrokeRec.h

Issue 1128113008: Make GrStrokeInfo inherit from SkStrokeRec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address review comments Created 5 years, 7 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 | « no previous file | src/core/SkStrokeRec.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 2012 Google Inc. 2 * Copyright 2012 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 SkStrokeRec_DEFINED 8 #ifndef SkStrokeRec_DEFINED
9 #define SkStrokeRec_DEFINED 9 #define SkStrokeRec_DEFINED
10 10
11 #include "SkPaint.h" 11 #include "SkPaint.h"
12 12
13 class SkPath; 13 class SkPath;
14 14
15 class SkStrokeRec { 15 class SkStrokeRec {
16 public: 16 public:
17 enum InitStyle { 17 enum InitStyle {
18 kHairline_InitStyle, 18 kHairline_InitStyle,
19 kFill_InitStyle 19 kFill_InitStyle
20 }; 20 };
21 SkStrokeRec(InitStyle style); 21 SkStrokeRec(InitStyle style);
22
23 SkStrokeRec(const SkStrokeRec&);
24 SkStrokeRec(const SkPaint&, SkPaint::Style, SkScalar resScale = 1); 22 SkStrokeRec(const SkPaint&, SkPaint::Style, SkScalar resScale = 1);
25 explicit SkStrokeRec(const SkPaint&, SkScalar resScale = 1); 23 explicit SkStrokeRec(const SkPaint&, SkScalar resScale = 1);
26 24
27 enum Style { 25 enum Style {
28 kHairline_Style, 26 kHairline_Style,
29 kFill_Style, 27 kFill_Style,
30 kStroke_Style, 28 kStroke_Style,
31 kStrokeAndFill_Style 29 kStrokeAndFill_Style
32 }; 30 };
33 enum { 31 enum {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 114
117 SkScalar fResScale; 115 SkScalar fResScale;
118 SkScalar fWidth; 116 SkScalar fWidth;
119 SkScalar fMiterLimit; 117 SkScalar fMiterLimit;
120 SkPaint::Cap fCap; 118 SkPaint::Cap fCap;
121 SkPaint::Join fJoin; 119 SkPaint::Join fJoin;
122 bool fStrokeAndFill; 120 bool fStrokeAndFill;
123 }; 121 };
124 122
125 #endif 123 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkStrokeRec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698