public:
SkDrawPictureCallback() {}
virtual ~SkDrawPictureCallback() {}
-
+
virtual bool abortDrawing() = 0;
};
-
+
/*
* Copyright 2011 Google Inc.
*
GrTexture* SkImage::getTexture() {
return asIB(this)->onGetTexture();
}
-
-
virtual void onDraw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) = 0;
virtual GrTexture* onGetTexture() { return NULL; }
-
+
// return a read-only copy of the pixels. We promise to not modify them,
// but only inspect them (or encode them).
virtual bool getROPixels(SkBitmap*) const { return false; }
SkAutoTDelete<SkImageEncoder> enc(SkImageEncoder::Create(t));
return enc.get() ? enc.get()->encodeData(bm, quality) : NULL;
}
-