Add missing functions to SkNWayCanvas

R=reed@google.com
BUG=none

Author: enne@chromium.org

Review URL: https://codereview.chromium.org/65513003

git-svn-id: http://skia.googlecode.com/svn/trunk/src@12295 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/utils/SkNWayCanvas.cpp b/utils/SkNWayCanvas.cpp
index eeb1bc2..da8bdb6 100644
--- a/utils/SkNWayCanvas.cpp
+++ b/utils/SkNWayCanvas.cpp
@@ -168,6 +168,13 @@
     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,13 +190,6 @@
     }
 }
 
-void SkNWayCanvas::drawOval(const SkRect& rect, const SkPaint& paint) {
-    Iter iter(fList);
-    while (iter.next()) {
-        iter->drawOval(rect, paint);
-    }
-}
-
 void SkNWayCanvas::drawRect(const SkRect& rect, const SkPaint& paint) {
     Iter iter(fList);
     while (iter.next()) {
@@ -197,6 +197,13 @@
     }
 }
 
+void SkNWayCanvas::drawOval(const SkRect& rect, const SkPaint& paint) {
+    Iter iter(fList);
+    while (iter.next()) {
+        iter->drawOval(rect, paint);
+    }
+}
+
 void SkNWayCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) {
     Iter iter(fList);
     while (iter.next()) {
@@ -236,6 +243,14 @@
     }
 }
 
+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::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()) {