aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-05-13 14:00:33 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-05-13 14:00:33 +0000
commitf76bacff7f66724072c67edb185abf9e3add11a0 (patch)
tree122df275ab6ffea666b3bb8ebbefaeba1cbe64ef /src/effects
parent25e9834c03a050afbf339f457b8c401aecb26c0b (diff)
add SkSize for dimensions
add SkShape baseclass, in the hopes of having SkPicture inherit from that, and also using shapes as the extension mechanism for things like animated-gif git-svn-id: http://skia.googlecode.com/svn/trunk@174 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects')
-rw-r--r--src/effects/SkNWayCanvas.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/effects/SkNWayCanvas.cpp b/src/effects/SkNWayCanvas.cpp
index d60f259f67..d3c84a145e 100644
--- a/src/effects/SkNWayCanvas.cpp
+++ b/src/effects/SkNWayCanvas.cpp
@@ -248,6 +248,13 @@ void SkNWayCanvas::drawPicture(SkPicture& picture) {
}
}
+void SkNWayCanvas::drawShape(SkShape* shape) {
+ Iter iter(fList);
+ while (iter.next()) {
+ iter->drawShape(shape);
+ }
+}
+
void SkNWayCanvas::drawVertices(VertexMode vmode, int vertexCount,
const SkPoint vertices[], const SkPoint texs[],
const SkColor colors[], SkXfermode* xmode,