aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkCanvas.h
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-25 12:10:42 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-25 12:10:42 +0000
commit9bf380ce7f848dfb5886dd52b82746521454b739 (patch)
treeb54c0fb5c026b791e4114e7d47dd43904674a9fb /include/core/SkCanvas.h
parent5c561cb8d8151d38c69128345106cbf225033a1a (diff)
drawBitmap* cleanup
Diffstat (limited to 'include/core/SkCanvas.h')
-rw-r--r--include/core/SkCanvas.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 0a4b7799d5..d22859fbc8 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -705,9 +705,9 @@ public:
* bitmap is the "center", then the center-rect should be [2, 2, 3, 3].
*
* If the dst is >= the bitmap size, then...
- * - The 4 corners are not stretch at all.
- * - The sides are stretch in only one axis.
- * - The center is stretch in both axes.
+ * - The 4 corners are not stretched at all.
+ * - The sides are stretched in only one axis.
+ * - The center is stretched in both axes.
* Else, for each axis where dst < bitmap,
* - The corners shrink proportionally
* - The sides (along the shrink axis) and center are not drawn
@@ -1002,10 +1002,6 @@ protected:
// is not released or deleted by the caller.
virtual SkCanvas* canvasForDrawIter();
- // all of the drawBitmap variants call this guy
- void commonDrawBitmap(const SkBitmap&, const SkIRect*, const SkMatrix&,
- const SkPaint& paint);
-
// Clip rectangle bounds. Called internally by saveLayer.
// returns false if the entire rectangle is entirely clipped out
bool clipRectBounds(const SkRect* bounds, SaveFlags flags,
@@ -1067,8 +1063,7 @@ private:
// internal methods are not virtual, so they can safely be called by other
// canvas apis, without confusing subclasses (like SkPictureRecording)
- void internalDrawBitmap(const SkBitmap&, const SkIRect*, const SkMatrix& m,
- const SkPaint* paint);
+ void internalDrawBitmap(const SkBitmap&, const SkMatrix& m, const SkPaint* paint);
void internalDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src,
const SkRect& dst, const SkPaint* paint);
void internalDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,