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

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

Issue 1761793003: Revert of move annotations to canvas virtual (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | « include/core/SkDevice.h ('k') | include/core/SkPicture.h » ('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
11 #include "SkColor.h" 11 #include "SkColor.h"
12 #include "SkFilterQuality.h" 12 #include "SkFilterQuality.h"
13 #include "SkMatrix.h" 13 #include "SkMatrix.h"
14 #include "SkXfermode.h" 14 #include "SkXfermode.h"
15 15
16 class SkAnnotation;
16 class SkAutoDescriptor; 17 class SkAutoDescriptor;
17 class SkAutoGlyphCache; 18 class SkAutoGlyphCache;
18 class SkColorFilter; 19 class SkColorFilter;
19 class SkData; 20 class SkData;
20 class SkDescriptor; 21 class SkDescriptor;
21 class SkDrawLooper; 22 class SkDrawLooper;
22 class SkReadBuffer; 23 class SkReadBuffer;
23 class SkWriteBuffer; 24 class SkWriteBuffer;
24 class SkGlyph; 25 class SkGlyph;
25 struct SkRect; 26 struct SkRect;
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 incremented. 618 incremented.
618 @param rasterizer May be NULL. The new rasterizer to be installed in 619 @param rasterizer May be NULL. The new rasterizer to be installed in
619 the paint. 620 the paint.
620 @return rasterizer 621 @return rasterizer
621 */ 622 */
622 SkRasterizer* setRasterizer(SkRasterizer* rasterizer); 623 SkRasterizer* setRasterizer(SkRasterizer* rasterizer);
623 624
624 SkImageFilter* getImageFilter() const { return fImageFilter; } 625 SkImageFilter* getImageFilter() const { return fImageFilter; }
625 SkImageFilter* setImageFilter(SkImageFilter*); 626 SkImageFilter* setImageFilter(SkImageFilter*);
626 627
628 SkAnnotation* getAnnotation() const { return fAnnotation; }
629 SkAnnotation* setAnnotation(SkAnnotation*);
630
627 /** 631 /**
628 * Return the paint's SkDrawLooper (if any). Does not affect the looper's 632 * Return the paint's SkDrawLooper (if any). Does not affect the looper's
629 * reference count. 633 * reference count.
630 */ 634 */
631 SkDrawLooper* getLooper() const { return fLooper; } 635 SkDrawLooper* getLooper() const { return fLooper; }
632 636
633 /** 637 /**
634 * Set or clear the looper object. 638 * Set or clear the looper object.
635 * <p /> 639 * <p />
636 * Pass NULL to clear any previous looper. 640 * Pass NULL to clear any previous looper.
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 private: 1032 private:
1029 SkTypeface* fTypeface; 1033 SkTypeface* fTypeface;
1030 SkPathEffect* fPathEffect; 1034 SkPathEffect* fPathEffect;
1031 SkShader* fShader; 1035 SkShader* fShader;
1032 SkXfermode* fXfermode; 1036 SkXfermode* fXfermode;
1033 SkMaskFilter* fMaskFilter; 1037 SkMaskFilter* fMaskFilter;
1034 SkColorFilter* fColorFilter; 1038 SkColorFilter* fColorFilter;
1035 SkRasterizer* fRasterizer; 1039 SkRasterizer* fRasterizer;
1036 SkDrawLooper* fLooper; 1040 SkDrawLooper* fLooper;
1037 SkImageFilter* fImageFilter; 1041 SkImageFilter* fImageFilter;
1042 SkAnnotation* fAnnotation;
1038 1043
1039 SkScalar fTextSize; 1044 SkScalar fTextSize;
1040 SkScalar fTextScaleX; 1045 SkScalar fTextScaleX;
1041 SkScalar fTextSkewX; 1046 SkScalar fTextSkewX;
1042 SkColor fColor; 1047 SkColor fColor;
1043 SkScalar fWidth; 1048 SkScalar fWidth;
1044 SkScalar fMiterLimit; 1049 SkScalar fMiterLimit;
1045 union { 1050 union {
1046 struct { 1051 struct {
1047 // all of these bitfields should add up to 32 1052 // all of these bitfields should add up to 32
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 friend class GrStencilAndCoverTextContext; 1142 friend class GrStencilAndCoverTextContext;
1138 friend class GrPathRendering; 1143 friend class GrPathRendering;
1139 friend class GrTextUtils; 1144 friend class GrTextUtils;
1140 friend class GrGLPathRendering; 1145 friend class GrGLPathRendering;
1141 friend class SkScalerContext; 1146 friend class SkScalerContext;
1142 friend class SkTextBaseIter; 1147 friend class SkTextBaseIter;
1143 friend class SkCanonicalizePaint; 1148 friend class SkCanonicalizePaint;
1144 }; 1149 };
1145 1150
1146 #endif 1151 #endif
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | include/core/SkPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698