Index: src/utils/SkNWayCanvas.cpp |
diff --git a/src/utils/SkNWayCanvas.cpp b/src/utils/SkNWayCanvas.cpp |
index eeb1bc2a0935f6919334ed7486920a0d42ef1c12..da8bdb6f41cf7271e31b3a12942f8d9349f15f9d 100644 |
--- a/src/utils/SkNWayCanvas.cpp |
+++ b/src/utils/SkNWayCanvas.cpp |
@@ -168,6 +168,13 @@ bool SkNWayCanvas::clipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { |
return this->INHERITED::clipRegion(deviceRgn, op); |
} |
+void SkNWayCanvas::clear(SkColor color) { |
+ Iter iter(fList); |
+ while (iter.next()) { |
+ iter->clear(color); |
+ } |
+} |
+ |
void SkNWayCanvas::drawPaint(const SkPaint& paint) { |
Iter iter(fList); |
while (iter.next()) { |
@@ -183,17 +190,17 @@ void SkNWayCanvas::drawPoints(PointMode mode, size_t count, const SkPoint pts[], |
} |
} |
-void SkNWayCanvas::drawOval(const SkRect& rect, const SkPaint& paint) { |
+void SkNWayCanvas::drawRect(const SkRect& rect, const SkPaint& paint) { |
Iter iter(fList); |
while (iter.next()) { |
- iter->drawOval(rect, paint); |
+ iter->drawRect(rect, paint); |
} |
} |
-void SkNWayCanvas::drawRect(const SkRect& rect, const SkPaint& paint) { |
+void SkNWayCanvas::drawOval(const SkRect& rect, const SkPaint& paint) { |
Iter iter(fList); |
while (iter.next()) { |
- iter->drawRect(rect, paint); |
+ iter->drawOval(rect, paint); |
} |
} |
@@ -236,6 +243,14 @@ void SkNWayCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
} |
} |
+void SkNWayCanvas::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
+ const SkRect& dst, const SkPaint* paint) { |
+ Iter iter(fList); |
+ while (iter.next()) { |
+ iter->drawBitmapNine(bitmap, center, dst, paint); |
+ } |
+} |
+ |
void SkNWayCanvas::drawSprite(const SkBitmap& bitmap, int x, int y, |
const SkPaint* paint) { |
Iter iter(fList); |
@@ -297,6 +312,13 @@ void SkNWayCanvas::drawVertices(VertexMode vmode, int vertexCount, |
} |
} |
+void SkNWayCanvas::drawData(const void* data, size_t length) { |
+ Iter iter(fList); |
+ while (iter.next()) { |
+ iter->drawData(data, length); |
+ } |
+} |
+ |
SkBounder* SkNWayCanvas::setBounder(SkBounder* bounder) { |
Iter iter(fList); |
while (iter.next()) { |