| OLD | NEW |
| 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 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 const SkPoint& offset, const SkPaint&) const
; | 122 const SkPoint& offset, const SkPaint&) const
; |
| 123 static SkScalar ComputeResScaleForStroking(const SkMatrix& ); | 123 static SkScalar ComputeResScaleForStroking(const SkMatrix& ); |
| 124 private: | 124 private: |
| 125 void drawDevMask(const SkMask& mask, const SkPaint&) const; | 125 void drawDevMask(const SkMask& mask, const SkPaint&) const; |
| 126 void drawBitmapAsMask(const SkBitmap&, const SkPaint&) const; | 126 void drawBitmapAsMask(const SkBitmap&, const SkPaint&) const; |
| 127 | 127 |
| 128 void drawPath(const SkPath&, const SkPaint&, const SkMatrix* preMatrix, | 128 void drawPath(const SkPath&, const SkPaint&, const SkMatrix* preMatrix, |
| 129 bool pathIsMutable, bool drawCoverage, | 129 bool pathIsMutable, bool drawCoverage, |
| 130 SkBlitter* customBlitter = NULL) const; | 130 SkBlitter* customBlitter = NULL) const; |
| 131 | 131 |
| 132 void drawLine(const SkPoint[2], const SkPaint&) const; |
| 133 void drawDevPath(const SkPath& devPath, const SkPaint& paint, bool drawCover
age, |
| 134 SkBlitter* customBlitter, bool doFill) const; |
| 132 /** | 135 /** |
| 133 * Return the current clip bounds, in local coordinates, with slop to accou
nt | 136 * Return the current clip bounds, in local coordinates, with slop to accou
nt |
| 134 * for antialiasing or hairlines (i.e. device-bounds outset by 1, and then | 137 * for antialiasing or hairlines (i.e. device-bounds outset by 1, and then |
| 135 * run through the inverse of the matrix). | 138 * run through the inverse of the matrix). |
| 136 * | 139 * |
| 137 * If the matrix cannot be inverted, or the current clip is empty, return | 140 * If the matrix cannot be inverted, or the current clip is empty, return |
| 138 * false and ignore bounds parameter. | 141 * false and ignore bounds parameter. |
| 139 */ | 142 */ |
| 140 bool SK_WARN_UNUSED_RESULT | 143 bool SK_WARN_UNUSED_RESULT |
| 141 computeConservativeLocalClipBounds(SkRect* bounds) const; | 144 computeConservativeLocalClipBounds(SkRect* bounds) const; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 152 SkBaseDevice* fDevice; // optional, may be null | 155 SkBaseDevice* fDevice; // optional, may be null |
| 153 | 156 |
| 154 #ifdef SK_DEBUG | 157 #ifdef SK_DEBUG |
| 155 void validate() const; | 158 void validate() const; |
| 156 #else | 159 #else |
| 157 void validate() const {} | 160 void validate() const {} |
| 158 #endif | 161 #endif |
| 159 }; | 162 }; |
| 160 | 163 |
| 161 #endif | 164 #endif |
| OLD | NEW |