| 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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 | 768 |
| 769 /** Draw the specified image, with its top/left corner at (x,y), using the | 769 /** Draw the specified image, with its top/left corner at (x,y), using the |
| 770 specified paint, transformed by the current matrix. | 770 specified paint, transformed by the current matrix. |
| 771 | 771 |
| 772 @param image The image to be drawn | 772 @param image The image to be drawn |
| 773 @param left The position of the left side of the image being drawn | 773 @param left The position of the left side of the image being drawn |
| 774 @param top The position of the top side of the image being drawn | 774 @param top The position of the top side of the image being drawn |
| 775 @param paint The paint used to draw the image, or NULL | 775 @param paint The paint used to draw the image, or NULL |
| 776 */ | 776 */ |
| 777 void drawImage(const SkImage* image, SkScalar left, SkScalar top, const SkPa
int* paint = NULL); | 777 void drawImage(const SkImage* image, SkScalar left, SkScalar top, const SkPa
int* paint = NULL); |
| 778 |
| 778 /** Draw the specified image, with the specified matrix applied (before the | 779 /** Draw the specified image, with the specified matrix applied (before the |
| 779 canvas' matrix is applied). | 780 canvas' matrix is applied). |
| 780 | 781 |
| 781 @param image The image to be drawn | 782 @param image The image to be drawn |
| 782 @param src Optional: specify the subset of the image to be drawn | 783 @param src Optional: specify the subset of the image to be drawn |
| 783 @param dst The destination rectangle where the scaled/translated | 784 @param dst The destination rectangle where the scaled/translated |
| 784 image will be drawn | 785 image will be drawn |
| 785 @param paint The paint used to draw the image, or NULL | 786 @param paint The paint used to draw the image, or NULL |
| 786 */ | 787 */ |
| 787 void drawImageRect(const SkImage* image, const SkRect* src, const SkRect& ds
t, | 788 void drawImageRect(const SkImage* image, const SkRect* src, const SkRect& ds
t, |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1494 | 1495 |
| 1495 class SkCanvasClipVisitor { | 1496 class SkCanvasClipVisitor { |
| 1496 public: | 1497 public: |
| 1497 virtual ~SkCanvasClipVisitor(); | 1498 virtual ~SkCanvasClipVisitor(); |
| 1498 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1499 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
| 1499 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1500 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
| 1500 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1501 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
| 1501 }; | 1502 }; |
| 1502 | 1503 |
| 1503 #endif | 1504 #endif |
| OLD | NEW |