aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects
diff options
context:
space:
mode:
authorGravatar dominikg <dominikg@chromium.org>2014-07-21 02:43:20 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-21 02:43:20 -0700
commit1bd6f7de5273f56a361a5b29ac9b448a525f0b9b (patch)
treecf72e0ea4b71c820fdc0863526e72a849503edc2 /src/effects
parent3d533ac917eaadf2fb3561f57d7266d8c0e665fd (diff)
Remove use of SK_SUPPORT_LEGACY_LAYERRASTERIZER_API.
Mozilla have removed any uses of the legacy API from their Moz2D code. Since they were the last users we know of, we can remove the legacy API. BUG=skia:2187 R=scroggo@google.com, reed@google.com Author: dominikg@chromium.org Review URL: https://codereview.chromium.org/402613003
Diffstat (limited to 'src/effects')
-rw-r--r--src/effects/SkLayerRasterizer.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/effects/SkLayerRasterizer.cpp b/src/effects/SkLayerRasterizer.cpp
index 90fd59b585..9b7bdca3f4 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) {