| 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* blob, SkScalar x, SkScalar y, |
| 191 const SkPaint& paint) SK_OVERRIDE; |
| 190 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], | 192 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 191 const SkPoint texCoords[4], SkXfermode* xmode, | 193 const SkPoint texCoords[4], SkXfermode* xmode, |
| 192 const SkPaint& paint) SK_OVERRIDE; | 194 const SkPaint& paint) SK_OVERRIDE; |
| 193 | 195 |
| 194 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 196 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
| 195 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 197 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
| 196 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 198 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
| 197 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 199 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
| 198 | 200 |
| 199 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; | 201 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 | 249 |
| 248 size_t fBitmapSizeThreshold; | 250 size_t fBitmapSizeThreshold; |
| 249 bool fDeferredDrawing; | 251 bool fDeferredDrawing; |
| 250 | 252 |
| 251 friend class SkDeferredCanvasTester; // for unit testing | 253 friend class SkDeferredCanvasTester; // for unit testing |
| 252 typedef SkCanvas INHERITED; | 254 typedef SkCanvas INHERITED; |
| 253 }; | 255 }; |
| 254 | 256 |
| 255 | 257 |
| 256 #endif | 258 #endif |
| OLD | NEW |