virtual void setMatrixClip(const SkMatrix&, const SkRegion&,
const SkClipStack&) {};
+#ifdef SK_SUPPORT_LEGACY_DEVICE_CLEAR
private:
/** Clears the entire device to the specified color (including alpha).
* Ignores the clip.
*/
virtual void clear(SkColor color);
public:
+#endif
/** These are called inside the per-device-layer loop for each draw call.
When these are called, we have already applied any saveLayer operations,
virtual bool endPortfolio();
protected:
- virtual void clear(SkColor color) SK_OVERRIDE;
-
virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE;
virtual void drawPoints(
const void* SkBaseDevice::peekPixels(SkImageInfo*, size_t*) { return NULL; }
+#ifdef SK_SUPPORT_LEGACY_DEVICE_CLEAR
// DEPRECATED : remove when chrome subclass have been updated to not override clear()
void SkBaseDevice::clear(SkColor color) {
SkFAIL("SkDevice::clear() should not be called");
}
+#endif
void SkBaseDevice::drawDRRect(const SkDraw& draw, const SkRRect& outer,
const SkRRect& inner, const SkPaint& paint) {
return S_OK;
}
-void SkXPSDevice::clear(SkColor color) {
- //TODO: override this for XPS
- SkDEBUGF(("XPS clear not yet implemented."));
-}
-
void SkXPSDevice::drawPoints(const SkDraw& d, SkCanvas::PointMode mode,
size_t count, const SkPoint points[],
const SkPaint& paint) {