const SkPoint[], const SkPaint& paint) SK_OVERRIDE {
this->addBitmapFromPaint(paint);
}
- virtual void drawRect(const SkDraw&, const SkRect& r,
+ virtual void drawRect(const SkDraw&, const SkRect&,
+ const SkPaint& paint) SK_OVERRIDE {
+ this->addBitmapFromPaint(paint);
+ }
+ virtual void drawOval(const SkDraw&, const SkRect&,
+ const SkPaint& paint) SK_OVERRIDE {
+ this->addBitmapFromPaint(paint);
+ }
+ virtual void drawRRect(const SkDraw&, const SkRRect&,
const SkPaint& paint) SK_OVERRIDE {
this->addBitmapFromPaint(paint);
}
#include "SkPaint.h"
#include "SkPicture.h"
#include "SkRandom.h"
+#include "SkRRect.h"
#include "SkShader.h"
#include "SkStream.h"
SkPaint paint;
paint.setShader(s)->unref();
canvas->drawRect(r, paint);
+ canvas->drawOval(r, paint);
+ SkRRect rr;
+ rr.setRectXY(r, 10, 10);
+ canvas->drawRRect(rr, paint);
}
// Return a picture with the bitmaps drawn at the specified positions.