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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 */ | 112 */ |
113 static RectType ComputeRectType(const SkPaint&, const SkMatrix&, | 113 static RectType ComputeRectType(const SkPaint&, const SkMatrix&, |
114 SkPoint* strokeSize); | 114 SkPoint* strokeSize); |
115 | 115 |
116 static bool ShouldDrawTextAsPaths(const SkPaint&, const SkMatrix&); | 116 static bool ShouldDrawTextAsPaths(const SkPaint&, const SkMatrix&); |
117 void drawText_asPaths(const char text[], size_t byteLength, | 117 void drawText_asPaths(const char text[], size_t byteLength, |
118 SkScalar x, SkScalar y, const SkPaint&) const; | 118 SkScalar x, SkScalar y, const SkPaint&) const; |
119 void drawPosText_asPaths(const char text[], size_t byteLength, | 119 void drawPosText_asPaths(const char text[], size_t byteLength, |
120 const SkScalar pos[], int scalarsPerPosition
, | 120 const SkScalar pos[], int scalarsPerPosition
, |
121 const SkPoint& offset, const SkPaint&) const
; | 121 const SkPoint& offset, const SkPaint&) const
; |
122 | 122 static SkScalar ComputeResScaleForStroking(const SkMatrix& ); |
123 private: | 123 private: |
124 void drawDevMask(const SkMask& mask, const SkPaint&) const; | 124 void drawDevMask(const SkMask& mask, const SkPaint&) const; |
125 void drawBitmapAsMask(const SkBitmap&, const SkPaint&) const; | 125 void drawBitmapAsMask(const SkBitmap&, const SkPaint&) const; |
126 | 126 |
127 void drawPath(const SkPath&, const SkPaint&, const SkMatrix* preMatrix, | 127 void drawPath(const SkPath&, const SkPaint&, const SkMatrix* preMatrix, |
128 bool pathIsMutable, bool drawCoverage, | 128 bool pathIsMutable, bool drawCoverage, |
129 SkBlitter* customBlitter = NULL) const; | 129 SkBlitter* customBlitter = NULL) const; |
130 | 130 |
131 /** | 131 /** |
132 * Return the current clip bounds, in local coordinates, with slop to accou
nt | 132 * Return the current clip bounds, in local coordinates, with slop to accou
nt |
(...skipping 16 matching lines...) Expand all Loading... |
149 SkBaseDevice* fDevice; // optional | 149 SkBaseDevice* fDevice; // optional |
150 | 150 |
151 #ifdef SK_DEBUG | 151 #ifdef SK_DEBUG |
152 void validate() const; | 152 void validate() const; |
153 #else | 153 #else |
154 void validate() const {} | 154 void validate() const {} |
155 #endif | 155 #endif |
156 }; | 156 }; |
157 | 157 |
158 #endif | 158 #endif |
OLD | NEW |