remove dead SK_SUPPORT_LEGACY_DEVICE_CLEAR code

BUG=skia:
TBR=robertphilips@google.com

Review URL: https://codereview.chromium.org/807083003
This commit is contained in:
reed 2014-12-21 11:03:36 -08:00 committed by Commit bot
parent ca32da7533
commit ec57b54ac7
2 changed files with 0 additions and 17 deletions

View File

@ -161,16 +161,6 @@ 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.
* DEPRECATED : will go away when chrome subclasses have been updated
*/
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,
and are handling any looping from the paint, and any effects from the

View File

@ -90,13 +90,6 @@ 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) {
SkPath path;