remove device::clear -- no longer called

BUG=skia:

Review URL: https://codereview.chromium.org/778373003
This commit is contained in:
reed 2014-12-08 08:00:29 -08:00 committed by Commit bot
parent 7d74cd1312
commit 08c357c914
4 changed files with 4 additions and 7 deletions

View File

@ -161,6 +161,7 @@ protected:
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.
@ -168,6 +169,7 @@ private:
*/
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,

View File

@ -70,8 +70,6 @@ public:
virtual bool endPortfolio();
protected:
virtual void clear(SkColor color) SK_OVERRIDE;
virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE;
virtual void drawPoints(

View File

@ -90,10 +90,12 @@ SkSurface* SkBaseDevice::newSurface(const SkImageInfo&, const SkSurfaceProps&) {
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) {

View File

@ -1159,11 +1159,6 @@ HRESULT SkXPSDevice::createXpsQuad(const SkPoint (&points)[4],
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) {