remove SK_SUPPORT_LEGACY_SAVELAYERPARAMS code

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1537193002

TBR=

Review URL: https://codereview.chromium.org/1537193002
This commit is contained in:
reed 2015-12-18 21:26:56 -08:00 committed by Commit bot
parent d0e1f80d04
commit 03ef4b16b2
2 changed files with 0 additions and 21 deletions

View File

@ -1245,17 +1245,10 @@ protected:
};
virtual void willSave() {}
#ifdef SK_SUPPORT_LEGACY_SAVELAYERPARAMS
virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) {
return kFullLayer_SaveLayerStrategy;
}
virtual SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&);
#else
// Overriders should call the corresponding INHERITED method up the inheritance chain.
virtual SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) {
return kFullLayer_SaveLayerStrategy;
}
#endif
virtual void willRestore() {}
virtual void didRestore() {}
virtual void didConcat(const SkMatrix&) {}

View File

@ -1134,20 +1134,6 @@ uint32_t SkCanvas::SaveFlagsToSaveLayerFlags(SaveFlags flags) {
return layerFlags;
}
#ifdef SK_SUPPORT_LEGACY_SAVELAYERPARAMS
SkCanvas::SaveLayerStrategy SkCanvas::getSaveLayerStrategy(const SaveLayerRec& rec) {
uint32_t flags = 0;
if (0 == (rec.fSaveLayerFlags & kDontClipToLayer_PrivateSaveLayerFlag)) {
flags |= kClipToLayer_SaveFlag;
}
if (0 == (rec.fSaveLayerFlags & kIsOpaque_SaveLayerFlag)) {
flags |= kHasAlphaLayer_SaveFlag;
}
return this->willSaveLayer(rec.fBounds, rec.fPaint, (SaveFlags)flags);
}
#endif
int SkCanvas::saveLayer(const SkRect* bounds, const SkPaint* paint) {
return this->saveLayer(SaveLayerRec(bounds, paint, 0));
}