aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkImage.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-05-04 08:32:02 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-04 08:32:02 -0700
commitf603fb3d0e5fa57c3f228d66945bef198b001135 (patch)
tree6d3013b43ae2f94277318b4c949ab1f6f1f18d10 /include/core/SkImage.h
parentab622c7b8cc8c39f0a594e4392b9e31b7e1ddb26 (diff)
make drawImage a virtual on SkDevice
default impl will turn the Image into a (raster) bitmap and call drawBitmap. BUG=skia:3803 Review URL: https://codereview.chromium.org/1118823004
Diffstat (limited to 'include/core/SkImage.h')
-rw-r--r--include/core/SkImage.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/core/SkImage.h b/include/core/SkImage.h
index ec85516619..ebc9a29394 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -172,19 +172,6 @@ private:
static uint32_t NextUniqueID();
typedef SkRefCnt INHERITED;
-
- friend class SkCanvas;
-
- 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 drawRect(SkCanvas*, const SkRect* src, const SkRect& dst, const SkPaint*) const;
};
#endif