Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: src/effects/SkLayerRasterizer.cpp

Issue 285443002: Remove SkLayerRasterizer legacy code. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up gyp files Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« gyp/common_conditions.gypi ('K') | « src/core/SkPaintPriv.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkLayerRasterizer.cpp
diff --git a/src/effects/SkLayerRasterizer.cpp b/src/effects/SkLayerRasterizer.cpp
index 7143a3b40e915839406efb9fa401cd59d7a50ae2..ed9939b2aa908582d5fa7ebdb2c22942a633a2ee 100644
--- a/src/effects/SkLayerRasterizer.cpp
+++ b/src/effects/SkLayerRasterizer.cpp
@@ -50,17 +50,6 @@ SkLayerRasterizer::~SkLayerRasterizer() {
clean_up_layers(const_cast<SkDeque*>(fLayers));
}
-#ifdef SK_SUPPORT_LEGACY_LAYERRASTERIZER_API
-void SkLayerRasterizer::addLayer(const SkPaint& paint, SkScalar dx,
- SkScalar dy) {
- SkASSERT(fLayers);
- SkLayerRasterizer_Rec* rec = (SkLayerRasterizer_Rec*)fLayers->push_back();
-
- SkNEW_PLACEMENT_ARGS(&rec->fPaint, SkPaint, (paint));
- rec->fOffset.set(dx, dy);
-}
-#endif
-
static bool compute_bounds(const SkDeque& layers, const SkPath& path,
const SkMatrix& matrix,
const SkIRect* clipBounds, SkIRect* bounds) {
« gyp/common_conditions.gypi ('K') | « src/core/SkPaintPriv.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698