Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Unified Diff: src/utils/SkNWayCanvas.cpp

Issue 65513003: Add missing functions to SkNWayCanvas (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« include/utils/SkNWayCanvas.h ('K') | « include/utils/SkNWayCanvas.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()) {
« include/utils/SkNWayCanvas.h ('K') | « include/utils/SkNWayCanvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698