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

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

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