Add SkImage->draw() call with src and dst rects.

Committed: http://code.google.com/p/skia/source/detail?r=10237

R=junov@chromium.org, senorblanco@chromium.org, reed@google.com

Author: arbesfeld@chromium.org

Review URL: https://chromiumcodereview.appspot.com/19729007

git-svn-id: http://skia.googlecode.com/svn/trunk/include@10274 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/core/SkImage.h b/core/SkImage.h
index c2ee509..85875d5 100644
--- a/core/SkImage.h
+++ b/core/SkImage.h
@@ -84,6 +84,15 @@
     void draw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*);
 
     /**
+     *  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*);
+    
+    /**
      *  Encode the image's pixels and return the result as a new SkData, which
      *  the caller must manage (i.e. call unref() when they are done).
      *