OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
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 SkDeferredCanvas_DEFINED | 8 #ifndef SkDeferredCanvas_DEFINED |
9 #define SkDeferredCanvas_DEFINED | 9 #define SkDeferredCanvas_DEFINED |
10 | 10 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 154 void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
155 | 155 |
156 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID
E; | 156 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID
E; |
157 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, | 157 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, |
158 const SkPaint&) SK_OVERRIDE; | 158 const SkPaint&) SK_OVERRIDE; |
159 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], | 159 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], |
160 const SkPaint&) SK_OVERRIDE; | 160 const SkPaint&) SK_OVERRIDE; |
161 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 161 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
162 SkScalar constY, const SkPaint&) SK_OVERRIDE; | 162 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
163 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 163 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
164 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | 164 const SkMatrix* matrix, |
| 165 SK_SUPPORT_LEGACY_DRAWTEXTONPATH_PARAM const Sk
Paint&) SK_OVERRIDE; |
165 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, | 166 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
166 const SkPaint& paint) SK_OVERRIDE; | 167 const SkPaint& paint) SK_OVERRIDE; |
167 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], | 168 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
168 const SkPoint texCoords[4], SkXfermode* xmode, | 169 const SkPoint texCoords[4], SkXfermode* xmode, |
169 const SkPaint& paint) SK_OVERRIDE; | 170 const SkPaint& paint) SK_OVERRIDE; |
170 | 171 |
171 void onDrawPaint(const SkPaint&) SK_OVERRIDE; | 172 void onDrawPaint(const SkPaint&) SK_OVERRIDE; |
172 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) SK_OVERRIDE; | 173 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) SK_OVERRIDE; |
173 void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; | 174 void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; |
174 void onDrawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; | 175 void onDrawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 254 |
254 mutable SkISize fCachedCanvasSize; | 255 mutable SkISize fCachedCanvasSize; |
255 mutable bool fCachedCanvasSizeDirty; | 256 mutable bool fCachedCanvasSizeDirty; |
256 | 257 |
257 friend class SkDeferredCanvasTester; // for unit testing | 258 friend class SkDeferredCanvasTester; // for unit testing |
258 typedef SkCanvas INHERITED; | 259 typedef SkCanvas INHERITED; |
259 }; | 260 }; |
260 | 261 |
261 | 262 |
262 #endif | 263 #endif |
OLD | NEW |