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

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

Issue 1304163008: Revert of experiment with zero-length round capped line segments (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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 | « gm/strokes.cpp ('k') | src/core/SkPathMeasure.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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 SkPaint_DEFINED 8 #ifndef SkPaint_DEFINED
9 #define SkPaint_DEFINED 9 #define SkPaint_DEFINED
10 10
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 behavior of miter joins when the joins angle is sharp. This value must 391 behavior of miter joins when the joins angle is sharp. This value must
392 be >= 0. 392 be >= 0.
393 @param miter set the miter limit on the paint, used whenever the 393 @param miter set the miter limit on the paint, used whenever the
394 paint's style is Stroke or StrokeAndFill. 394 paint's style is Stroke or StrokeAndFill.
395 */ 395 */
396 void setStrokeMiter(SkScalar miter); 396 void setStrokeMiter(SkScalar miter);
397 397
398 /** Cap enum specifies the settings for the paint's strokecap. This is the 398 /** Cap enum specifies the settings for the paint's strokecap. This is the
399 treatment that is applied to the beginning and end of each non-closed 399 treatment that is applied to the beginning and end of each non-closed
400 contour (e.g. lines). 400 contour (e.g. lines).
401
402 If the cap is round or square, the caps are drawn when the contour has
403 a zero length. Zero length contours can be created by following moveTo
404 with a lineTo at the same point, or a moveTo followed by a close.
405
406 A dash with an on interval of zero also creates a zero length contour.
407
408 The zero length contour draws the square cap without rotation, since
409 the no direction can be inferred.
410 */ 401 */
411 enum Cap { 402 enum Cap {
412 kButt_Cap, //!< begin/end contours with no extension 403 kButt_Cap, //!< begin/end contours with no extension
413 kRound_Cap, //!< begin/end contours with a semi-circle extension 404 kRound_Cap, //!< begin/end contours with a semi-circle extension
414 kSquare_Cap, //!< begin/end contours with a half square extension 405 kSquare_Cap, //!< begin/end contours with a half square extension
415 406
416 kCapCount, 407 kCapCount,
417 kDefault_Cap = kButt_Cap 408 kDefault_Cap = kButt_Cap
418 }; 409 };
419 410
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 friend class GrStencilAndCoverTextContext; 1089 friend class GrStencilAndCoverTextContext;
1099 friend class GrPathRendering; 1090 friend class GrPathRendering;
1100 friend class GrTextContext; 1091 friend class GrTextContext;
1101 friend class GrGLPathRendering; 1092 friend class GrGLPathRendering;
1102 friend class SkScalerContext; 1093 friend class SkScalerContext;
1103 friend class SkTextToPathIter; 1094 friend class SkTextToPathIter;
1104 friend class SkCanonicalizePaint; 1095 friend class SkCanonicalizePaint;
1105 }; 1096 };
1106 1097
1107 #endif 1098 #endif
OLDNEW
« no previous file with comments | « gm/strokes.cpp ('k') | src/core/SkPathMeasure.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698