Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 09fef0bbed2d2d7eb35d4f49d72fc5ab0801d61b..7370117d9d5a622ec68da2a454ab0e09d9c5768e 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -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)); |
} |