aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkCanvas.h
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-18 14:04:54 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-18 14:04:54 +0000
commit10f9f4a844c8d5260c0a02df94b940b6abf66b0d (patch)
tree3a844486daa7132fc317ac76e7ff8ed5b09e7db9 /include/core/SkCanvas.h
parenteab16dea1ce249dc8e4dc635cd76b6b1b7d0cc98 (diff)
revert 5580
git-svn-id: http://skia.googlecode.com/svn/trunk@5581 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkCanvas.h')
-rw-r--r--include/core/SkCanvas.h23
1 files changed, 3 insertions, 20 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 4696c9f20b..1f29e1c00a 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -644,26 +644,9 @@ public:
image will be drawn
@param paint The paint used to draw the bitmap, or NULL
*/
- virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
- const SkRect& dst,
- const SkPaint* paint);
-
- void drawBitmapRect(const SkBitmap& bitmap, const SkRect& dst,
- const SkPaint* paint) {
- this->drawBitmapRectToRect(bitmap, NULL, dst, paint);
- }
+ virtual void drawBitmapRect(const SkBitmap& bitmap, const SkIRect* src,
+ const SkRect& dst, const SkPaint* paint = NULL);
- void drawBitmapRect(const SkBitmap& bitmap, const SkIRect* isrc,
- const SkRect& dst, const SkPaint* paint = NULL) {
- SkRect realSrcStorage;
- SkRect* realSrcPtr = NULL;
- if (isrc) {
- realSrcStorage.set(*isrc);
- realSrcPtr = &realSrcStorage;
- }
- this->drawBitmapRectToRect(bitmap, realSrcPtr, dst, paint);
- }
-
virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
const SkPaint* paint = NULL);
@@ -1010,7 +993,7 @@ private:
// canvas apis, without confusing subclasses (like SkPictureRecording)
void internalDrawBitmap(const SkBitmap&, const SkIRect*, const SkMatrix& m,
const SkPaint* paint);
- void internalDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src,
+ void internalDrawBitmapRect(const SkBitmap& bitmap, const SkIRect* src,
const SkRect& dst, const SkPaint* paint);
void internalDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,
const SkRect& dst, const SkPaint* paint);