| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 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 SkCanvas_DEFINED | 8 #ifndef SkCanvas_DEFINED |
| 9 #define SkCanvas_DEFINED | 9 #define SkCanvas_DEFINED |
| 10 | 10 |
| (...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1383 | 1383 |
| 1384 virtual void willSave() {} | 1384 virtual void willSave() {} |
| 1385 // Overriders should call the corresponding INHERITED method up the inherita
nce chain. | 1385 // Overriders should call the corresponding INHERITED method up the inherita
nce chain. |
| 1386 virtual SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) { | 1386 virtual SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) { |
| 1387 return kFullLayer_SaveLayerStrategy; | 1387 return kFullLayer_SaveLayerStrategy; |
| 1388 } | 1388 } |
| 1389 virtual void willRestore() {} | 1389 virtual void willRestore() {} |
| 1390 virtual void didRestore() {} | 1390 virtual void didRestore() {} |
| 1391 virtual void didConcat(const SkMatrix&) {} | 1391 virtual void didConcat(const SkMatrix&) {} |
| 1392 virtual void didSetMatrix(const SkMatrix&) {} | 1392 virtual void didSetMatrix(const SkMatrix&) {} |
| 1393 virtual void didTranslate(SkScalar, SkScalar) {} |
| 1393 | 1394 |
| 1394 #ifdef SK_EXPERIMENTAL_SHADOWING | 1395 #ifdef SK_EXPERIMENTAL_SHADOWING |
| 1395 virtual void didTranslateZ(SkScalar) {} | 1396 virtual void didTranslateZ(SkScalar) {} |
| 1396 #endif | 1397 #endif |
| 1397 | 1398 |
| 1398 virtual void onDrawAnnotation(const SkRect&, const char key[], SkData* value
); | 1399 virtual void onDrawAnnotation(const SkRect&, const char key[], SkData* value
); |
| 1399 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&); | 1400 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&); |
| 1400 | 1401 |
| 1401 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, | 1402 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, |
| 1402 SkScalar y, const SkPaint& paint); | 1403 SkScalar y, const SkPaint& paint); |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1682 | 1683 |
| 1683 class SkCanvasClipVisitor { | 1684 class SkCanvasClipVisitor { |
| 1684 public: | 1685 public: |
| 1685 virtual ~SkCanvasClipVisitor(); | 1686 virtual ~SkCanvasClipVisitor(); |
| 1686 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1687 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
| 1687 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1688 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
| 1688 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1689 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
| 1689 }; | 1690 }; |
| 1690 | 1691 |
| 1691 #endif | 1692 #endif |
| OLD | NEW |