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

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

Issue 12906016: Fix more clang tautological-constant-out-of-range-compare errors. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | include/core/SkXfermode.h » ('j') | include/core/SkXfermode.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 2
3 /* 3 /*
4 * Copyright 2006 The Android Open Source Project 4 * Copyright 2006 The Android Open Source Project
5 * 5 *
6 * Use of this source code is governed by a BSD-style license that can be 6 * Use of this source code is governed by a BSD-style license that can be
7 * found in the LICENSE file. 7 * found in the LICENSE file.
8 */ 8 */
9 9
10 10
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 379
380 /** Cap enum specifies the settings for the paint's strokecap. This is the 380 /** Cap enum specifies the settings for the paint's strokecap. This is the
381 treatment that is applied to the beginning and end of each non-closed 381 treatment that is applied to the beginning and end of each non-closed
382 contour (e.g. lines). 382 contour (e.g. lines).
383 */ 383 */
384 enum Cap { 384 enum Cap {
385 kButt_Cap, //!< begin/end contours with no extension 385 kButt_Cap, //!< begin/end contours with no extension
386 kRound_Cap, //!< begin/end contours with a semi-circle extension 386 kRound_Cap, //!< begin/end contours with a semi-circle extension
387 kSquare_Cap, //!< begin/end contours with a half square extension 387 kSquare_Cap, //!< begin/end contours with a half square extension
388 388
389 kDefault_Cap = kButt_Cap,
reed1 2013/03/28 13:13:07 kCapCount now has the wrong value.
390
389 kCapCount, 391 kCapCount,
390 kDefault_Cap = kButt_Cap
391 }; 392 };
392 393
393 /** Join enum specifies the settings for the paint's strokejoin. This is 394 /** Join enum specifies the settings for the paint's strokejoin. This is
394 the treatment that is applied to corners in paths and rectangles. 395 the treatment that is applied to corners in paths and rectangles.
395 */ 396 */
396 enum Join { 397 enum Join {
397 kMiter_Join, //!< connect path segments with a sharp join 398 kMiter_Join, //!< connect path segments with a sharp join
398 kRound_Join, //!< connect path segments with a round join 399 kRound_Join, //!< connect path segments with a round join
399 kBevel_Join, //!< connect path segments with a flat bevel join 400 kBevel_Join, //!< connect path segments with a flat bevel join
400 401
402 kDefault_Join = kMiter_Join,
reed1 2013/03/28 13:13:07 kJoinCount now has the wrong value.
403
401 kJoinCount, 404 kJoinCount,
402 kDefault_Join = kMiter_Join
403 }; 405 };
404 406
405 /** Return the paint's stroke cap type, controlling how the start and end 407 /** Return the paint's stroke cap type, controlling how the start and end
406 of stroked lines and paths are treated. 408 of stroked lines and paths are treated.
407 @return the line cap style for the paint, used whenever the paint's 409 @return the line cap style for the paint, used whenever the paint's
408 style is Stroke or StrokeAndFill. 410 style is Stroke or StrokeAndFill.
409 */ 411 */
410 Cap getStrokeCap() const { return (Cap)fCapType; } 412 Cap getStrokeCap() const { return (Cap)fCapType; }
411 413
412 /** Set the paint's stroke cap type. 414 /** Set the paint's stroke cap type.
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 friend class SkTextToPathIter; 992 friend class SkTextToPathIter;
991 993
992 #ifdef SK_BUILD_FOR_ANDROID 994 #ifdef SK_BUILD_FOR_ANDROID
993 // In order for the == operator to work properly this must be the last field 995 // In order for the == operator to work properly this must be the last field
994 // in the struct so that we can do a memcmp to this field's offset. 996 // in the struct so that we can do a memcmp to this field's offset.
995 uint32_t fGenerationID; 997 uint32_t fGenerationID;
996 #endif 998 #endif
997 }; 999 };
998 1000
999 #endif 1001 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkXfermode.h » ('j') | include/core/SkXfermode.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698