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

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

Issue 48623006: Add ability to ninepatch blurred rounded rectangle (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Address nit (static function name) Created 7 years, 1 month 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/SkMaskFilter.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkDraw_DEFINED 10 #ifndef SkDraw_DEFINED
11 #define SkDraw_DEFINED 11 #define SkDraw_DEFINED
12 12
13 #include "SkCanvas.h" 13 #include "SkCanvas.h"
14 #include "SkMask.h" 14 #include "SkMask.h"
15 #include "SkPaint.h" 15 #include "SkPaint.h"
16 16
17 class SkBitmap; 17 class SkBitmap;
18 class SkBounder; 18 class SkBounder;
19 class SkClipStack; 19 class SkClipStack;
20 class SkBaseDevice; 20 class SkBaseDevice;
21 class SkMatrix; 21 class SkMatrix;
22 class SkPath; 22 class SkPath;
23 class SkRegion; 23 class SkRegion;
24 class SkRasterClip; 24 class SkRasterClip;
25 struct SkDrawProcs; 25 struct SkDrawProcs;
26 struct SkRect; 26 struct SkRect;
27 class SkRRect;
27 28
28 class SkDraw { 29 class SkDraw {
29 public: 30 public:
30 SkDraw(); 31 SkDraw();
31 SkDraw(const SkDraw& src); 32 SkDraw(const SkDraw& src);
32 33
33 void drawPaint(const SkPaint&) const; 34 void drawPaint(const SkPaint&) const;
34 void drawPoints(SkCanvas::PointMode, size_t count, const SkPoint[], 35 void drawPoints(SkCanvas::PointMode, size_t count, const SkPoint[],
35 const SkPaint&, bool forceUseDevice = false) const; 36 const SkPaint&, bool forceUseDevice = false) const;
36 void drawRect(const SkRect&, const SkPaint&) const; 37 void drawRect(const SkRect&, const SkPaint&) const;
38 void drawRRect(const SkRRect&, const SkPaint&) const;
37 /** 39 /**
38 * To save on mallocs, we allow a flag that tells us that srcPath is 40 * To save on mallocs, we allow a flag that tells us that srcPath is
39 * mutable, so that we don't have to make copies of it as we transform it. 41 * mutable, so that we don't have to make copies of it as we transform it.
40 * 42 *
41 * If prePathMatrix is not null, it should logically be applied before any 43 * If prePathMatrix is not null, it should logically be applied before any
42 * stroking or other effects. If there are no effects on the paint that 44 * stroking or other effects. If there are no effects on the paint that
43 * affect the geometry/rasterization, then the pre matrix can just be 45 * affect the geometry/rasterization, then the pre matrix can just be
44 * pre-concated with the current matrix. 46 * pre-concated with the current matrix.
45 */ 47 */
46 void drawPath(const SkPath& srcPath, const SkPaint&, 48 void drawPath(const SkPath& srcPath, const SkPaint&,
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 SkDrawProcs* fProcs; // optional 134 SkDrawProcs* fProcs; // optional
133 135
134 #ifdef SK_DEBUG 136 #ifdef SK_DEBUG
135 void validate() const; 137 void validate() const;
136 #else 138 #else
137 void validate() const {} 139 void validate() const {}
138 #endif 140 #endif
139 }; 141 };
140 142
141 #endif 143 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkMaskFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698