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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 | 180 |
181 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 181 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
182 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, | 182 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, |
183 const SkPaint&) SK_OVERRIDE; | 183 const SkPaint&) SK_OVERRIDE; |
184 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], | 184 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], |
185 const SkPaint&) SK_OVERRIDE; | 185 const SkPaint&) SK_OVERRIDE; |
186 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 186 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
187 SkScalar constY, const SkPaint&) SK_OVERRIDE; | 187 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
188 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 188 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
189 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | 189 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; |
| 190 virtual void onDrawTextBlob(const SkTextBlob*, const SkPoint&, const SkPaint
&) SK_OVERRIDE; |
190 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], | 191 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
191 const SkPoint texCoords[4], SkXfermode* xmode, | 192 const SkPoint texCoords[4], SkXfermode* xmode, |
192 const SkPaint& paint) SK_OVERRIDE; | 193 const SkPaint& paint) SK_OVERRIDE; |
193 | 194 |
194 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 195 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
195 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 196 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
196 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 197 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
197 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 198 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
198 | 199 |
199 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; | 200 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 248 |
248 size_t fBitmapSizeThreshold; | 249 size_t fBitmapSizeThreshold; |
249 bool fDeferredDrawing; | 250 bool fDeferredDrawing; |
250 | 251 |
251 friend class SkDeferredCanvasTester; // for unit testing | 252 friend class SkDeferredCanvasTester; // for unit testing |
252 typedef SkCanvas INHERITED; | 253 typedef SkCanvas INHERITED; |
253 }; | 254 }; |
254 | 255 |
255 | 256 |
256 #endif | 257 #endif |
OLD | NEW |