| 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 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1432 const uint16_t indices[], int indexCount, const
SkPaint&); | 1432 const uint16_t indices[], int indexCount, const
SkPaint&); |
| 1433 | 1433 |
| 1434 virtual void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[],
const SkColor[], | 1434 virtual void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[],
const SkColor[], |
| 1435 int count, SkXfermode::Mode, const SkRect* cull, co
nst SkPaint*); | 1435 int count, SkXfermode::Mode, const SkRect* cull, co
nst SkPaint*); |
| 1436 virtual void onDrawPath(const SkPath&, const SkPaint&); | 1436 virtual void onDrawPath(const SkPath&, const SkPaint&); |
| 1437 virtual void onDrawImage(const SkImage*, SkScalar dx, SkScalar dy, const SkP
aint*); | 1437 virtual void onDrawImage(const SkImage*, SkScalar dx, SkScalar dy, const SkP
aint*); |
| 1438 virtual void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, c
onst SkPaint*, | 1438 virtual void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, c
onst SkPaint*, |
| 1439 SrcRectConstraint); | 1439 SrcRectConstraint); |
| 1440 virtual void onDrawImageNine(const SkImage*, const SkIRect& center, const Sk
Rect& dst, | 1440 virtual void onDrawImageNine(const SkImage*, const SkIRect& center, const Sk
Rect& dst, |
| 1441 const SkPaint*); | 1441 const SkPaint*); |
| 1442 virtual void onDrawImageLattice(const SkImage*, const Lattice& lattice, cons
t SkRect& dst, |
| 1443 const SkPaint*); |
| 1442 | 1444 |
| 1443 virtual void onDrawBitmap(const SkBitmap&, SkScalar dx, SkScalar dy, const S
kPaint*); | 1445 virtual void onDrawBitmap(const SkBitmap&, SkScalar dx, SkScalar dy, const S
kPaint*); |
| 1444 virtual void onDrawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&,
const SkPaint*, | 1446 virtual void onDrawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&,
const SkPaint*, |
| 1445 SrcRectConstraint); | 1447 SrcRectConstraint); |
| 1446 virtual void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const
SkRect& dst, | 1448 virtual void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const
SkRect& dst, |
| 1447 const SkPaint*); | 1449 const SkPaint*); |
| 1448 virtual void onDrawImageLattice(const SkImage*, const Lattice& lattice, cons
t SkRect& dst, | 1450 virtual void onDrawBitmapLattice(const SkBitmap&, const Lattice& lattice, co
nst SkRect& dst, |
| 1449 const SkPaint*); | 1451 const SkPaint*); |
| 1450 | 1452 |
| 1451 enum ClipEdgeStyle { | 1453 enum ClipEdgeStyle { |
| 1452 kHard_ClipEdgeStyle, | 1454 kHard_ClipEdgeStyle, |
| 1453 kSoft_ClipEdgeStyle | 1455 kSoft_ClipEdgeStyle |
| 1454 }; | 1456 }; |
| 1455 | 1457 |
| 1456 virtual void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle e
dgeStyle); | 1458 virtual void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle e
dgeStyle); |
| 1457 virtual void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyl
e edgeStyle); | 1459 virtual void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyl
e edgeStyle); |
| 1458 virtual void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e
dgeStyle); | 1460 virtual void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e
dgeStyle); |
| 1459 virtual void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op); | 1461 virtual void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op); |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1680 | 1682 |
| 1681 class SkCanvasClipVisitor { | 1683 class SkCanvasClipVisitor { |
| 1682 public: | 1684 public: |
| 1683 virtual ~SkCanvasClipVisitor(); | 1685 virtual ~SkCanvasClipVisitor(); |
| 1684 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1686 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
| 1685 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1687 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
| 1686 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1688 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
| 1687 }; | 1689 }; |
| 1688 | 1690 |
| 1689 #endif | 1691 #endif |
| OLD | NEW |