| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 4 * | 3 * |
| 5 * 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 |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 | |
| 10 #include "SkDrawPaint.h" | 8 #include "SkDrawPaint.h" |
| 11 #include "SkAnimateMaker.h" | 9 #include "SkAnimateMaker.h" |
| 12 #include "SkDrawColor.h" | 10 #include "SkDrawColor.h" |
| 13 #include "SkDrawShader.h" | 11 #include "SkDrawShader.h" |
| 14 #include "SkMaskFilter.h" | 12 #include "SkMaskFilter.h" |
| 15 #include "SkPaintParts.h" | 13 #include "SkPaintPart.h" |
| 16 #include "SkPathEffect.h" | 14 #include "SkPathEffect.h" |
| 17 | 15 |
| 18 enum SkPaint_Functions { | 16 enum SkPaint_Functions { |
| 19 SK_FUNCTION(measureText) | 17 SK_FUNCTION(measureText) |
| 20 }; | 18 }; |
| 21 | 19 |
| 22 enum SkPaint_Properties { | 20 enum SkPaint_Properties { |
| 23 SK_PROPERTY(ascent), | 21 SK_PROPERTY(ascent), |
| 24 SK_PROPERTY(descent) | 22 SK_PROPERTY(descent) |
| 25 }; | 23 }; |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 paint->setTextSkewX(textSkewX); | 258 paint->setTextSkewX(textSkewX); |
| 261 if (typeface == NULL) | 259 if (typeface == NULL) |
| 262 paint->setTypeface(NULL); | 260 paint->setTypeface(NULL); |
| 263 else if (typeface != (SkDrawTypeface*) -1) | 261 else if (typeface != (SkDrawTypeface*) -1) |
| 264 SkSafeUnref(paint->setTypeface(typeface->getTypeface())); | 262 SkSafeUnref(paint->setTypeface(typeface->getTypeface())); |
| 265 if (underline != -1) | 263 if (underline != -1) |
| 266 paint->setUnderlineText(SkToBool(underline)); | 264 paint->setUnderlineText(SkToBool(underline)); |
| 267 if (xfermode != -1) | 265 if (xfermode != -1) |
| 268 paint->setXfermodeMode((SkXfermode::Mode) xfermode); | 266 paint->setXfermodeMode((SkXfermode::Mode) xfermode); |
| 269 } | 267 } |
| OLD | NEW |