| Index: include/core/SkImage.h
|
| diff --git a/include/core/SkImage.h b/include/core/SkImage.h
|
| index a723aeeb86ea6c9b2783fcd0646b11f781a6f21a..5a6c966d30fc970969ebc0a3ba9992dce237b34e 100644
|
| --- a/include/core/SkImage.h
|
| +++ b/include/core/SkImage.h
|
| @@ -71,17 +71,6 @@ public:
|
| SkShader::TileMode,
|
| const SkMatrix* localMatrix = NULL) const;
|
|
|
| - void draw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) const;
|
| -
|
| - /**
|
| - * Draw the image, cropped to the src rect, to the dst rect of a canvas.
|
| - * If src is larger than the bounds of the image, the rest of the image is
|
| - * filled with transparent black pixels.
|
| - *
|
| - * See SkCanvas::drawBitmapRectToRect for similar behavior.
|
| - */
|
| - void draw(SkCanvas*, const SkRect* src, const SkRect& dst, const SkPaint*) const;
|
| -
|
| /**
|
| * If the image has direct access to its pixels (i.e. they are in local
|
| * RAM) return the (const) address of those pixels, and if not null, return
|
| @@ -103,6 +92,17 @@ public:
|
| SkData* encode(SkImageEncoder::Type t = SkImageEncoder::kPNG_Type,
|
| int quality = 80) const;
|
|
|
| + void draw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) const;
|
| +
|
| + /**
|
| + * Draw the image, cropped to the src rect, to the dst rect of a canvas.
|
| + * If src is larger than the bounds of the image, the rest of the image is
|
| + * filled with transparent black pixels.
|
| + *
|
| + * See SkCanvas::drawBitmapRectToRect for similar behavior.
|
| + */
|
| + void draw(SkCanvas*, const SkRect* src, const SkRect& dst, const SkPaint*) const;
|
| +
|
| protected:
|
| SkImage(int width, int height) :
|
| fWidth(width),
|
|
|