// SkNoDrawCanvas is a helper for SkCanvas subclasses which do not need to // actually rasterize (e.g., analysis of the draw calls). // // It provides the following simplifications: // // * not backed by any device/pixels // * conservative clipping (clipping calls only use rectangles) // class SK_API SkNoDrawCanvas : public SkCanvasVirtualEnforcer<SkCanvas> { public:
SkNoDrawCanvas(int width, int height);
SkNoDrawCanvas(const SkIRect&);
// Optimization to reset state to be the same as after construction. void resetCanvas(int w, int h) { this->resetForNextPicture(SkIRect::MakeWH(w, h)); } void resetCanvas(const SkIRect& rect) { this->resetForNextPicture(rect); }
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.