| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkCanvas_DEFINED | 10 #ifndef SkCanvas_DEFINED |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 @param paint The paint used to draw the path | 665 @param paint The paint used to draw the path |
| 666 */ | 666 */ |
| 667 virtual void drawPath(const SkPath& path, const SkPaint& paint); | 667 virtual void drawPath(const SkPath& path, const SkPaint& paint); |
| 668 | 668 |
| 669 /** Draw the specified bitmap, with its top/left corner at (x,y), using the | 669 /** Draw the specified bitmap, with its top/left corner at (x,y), using the |
| 670 specified paint, transformed by the current matrix. Note: if the paint | 670 specified paint, transformed by the current matrix. Note: if the paint |
| 671 contains a maskfilter that generates a mask which extends beyond the | 671 contains a maskfilter that generates a mask which extends beyond the |
| 672 bitmap's original width/height, then the bitmap will be drawn as if it | 672 bitmap's original width/height, then the bitmap will be drawn as if it |
| 673 were in a Shader with CLAMP mode. Thus the color outside of the original | 673 were in a Shader with CLAMP mode. Thus the color outside of the original |
| 674 width/height will be the edge color replicated. | 674 width/height will be the edge color replicated. |
| 675 |
| 676 If a shader is present on the paint it will be ignored, except in the |
| 677 case where the bitmap is kA8_Config. In that case, the color is |
| 678 generated by the shader. |
| 679 |
| 675 @param bitmap The bitmap to be drawn | 680 @param bitmap The bitmap to be drawn |
| 676 @param left The position of the left side of the bitmap being drawn | 681 @param left The position of the left side of the bitmap being drawn |
| 677 @param top The position of the top side of the bitmap being drawn | 682 @param top The position of the top side of the bitmap being drawn |
| 678 @param paint The paint used to draw the bitmap, or NULL | 683 @param paint The paint used to draw the bitmap, or NULL |
| 679 */ | 684 */ |
| 680 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 685 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
| 681 const SkPaint* paint = NULL); | 686 const SkPaint* paint = NULL); |
| 682 | 687 |
| 683 enum DrawBitmapRectFlags { | 688 enum DrawBitmapRectFlags { |
| 684 kNone_DrawBitmapRectFlag = 0x0, | 689 kNone_DrawBitmapRectFlag = 0x0, |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1183 fCanvas->endCommentGroup(); | 1188 fCanvas->endCommentGroup(); |
| 1184 } | 1189 } |
| 1185 } | 1190 } |
| 1186 | 1191 |
| 1187 private: | 1192 private: |
| 1188 SkCanvas* fCanvas; | 1193 SkCanvas* fCanvas; |
| 1189 }; | 1194 }; |
| 1190 #define SkAutoCommentBlock(...) SK_REQUIRE_LOCAL_VAR(SkAutoCommentBlock) | 1195 #define SkAutoCommentBlock(...) SK_REQUIRE_LOCAL_VAR(SkAutoCommentBlock) |
| 1191 | 1196 |
| 1192 #endif | 1197 #endif |
| OLD | NEW |