aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-06-18 14:41:26 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-18 14:41:26 -0700
commitc5d5cf9489977aa6fba077d1dc242029fbb4859e (patch)
tree5f54f8d6e53c9a039e90f41d5cc51e312f0cf1b2 /include
parentbcbc1788b478b1e54079318ad073e8490aa66fae (diff)
remove guarded code - there are no more callers
BUG=skia: R=scroggo@google.com Author: reed@google.com Review URL: https://codereview.chromium.org/343783002
Diffstat (limited to 'include')
-rw-r--r--include/core/SkCanvas.h9
-rw-r--r--include/effects/SkLayerRasterizer.h30
2 files changed, 4 insertions, 35 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index a08e82800c..8640d729b0 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -1111,15 +1111,6 @@ public:
virtual ClipType getClipType() const;
#endif
-#ifdef SK_SUPPORT_LEGACY_GETTOTALCLIP
- /** DEPRECATED -- need to move this guy to private/friend
- * Return the current device clip (concatenation of all clip calls).
- * This does not account for the translate in any of the devices.
- * @return the current device clip (concatenation of all clip calls).
- */
- const SkRegion& getTotalClip() const;
-#endif
-
/** Return the clip stack. The clip stack stores all the individual
* clips organized by the save/restore frame in which they were
* added.
diff --git a/include/effects/SkLayerRasterizer.h b/include/effects/SkLayerRasterizer.h
index 9d4c8239f2..c061be689d 100644
--- a/include/effects/SkLayerRasterizer.h
+++ b/include/effects/SkLayerRasterizer.h
@@ -1,4 +1,3 @@
-
/*
* Copyright 2006 The Android Open Source Project
*
@@ -6,7 +5,6 @@
* found in the LICENSE file.
*/
-
#ifndef SkLayerRasterizer_DEFINED
#define SkLayerRasterizer_DEFINED
@@ -64,24 +62,9 @@ public:
SkDeque* fLayers;
};
-#ifdef SK_SUPPORT_LEGACY_LAYERRASTERIZER_API
- void addLayer(const SkPaint& paint) {
- this->addLayer(paint, 0, 0);
- }
-
- /** Add a new layer (above any previous layers) to the rasterizer.
- The layer will extract those fields that affect the mask from
- the specified paint, but will not retain a reference to the paint
- object itself, so it may be reused without danger of side-effects.
- */
- void addLayer(const SkPaint& paint, SkScalar dx, SkScalar dy);
-#endif
-
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLayerRasterizer)
protected:
- SkLayerRasterizer(SkDeque* layers);
- SkLayerRasterizer(SkReadBuffer&);
virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
// override from SkRasterizer
@@ -89,17 +72,12 @@ protected:
const SkIRect* clipBounds,
SkMask* mask, SkMask::CreateMode mode) const;
-#ifdef SK_SUPPORT_LEGACY_LAYERRASTERIZER_API
-public:
-#endif
- SkLayerRasterizer();
-
private:
-#ifdef SK_SUPPORT_LEGACY_LAYERRASTERIZER_API
- SkDeque* fLayers;
-#else
const SkDeque* const fLayers;
-#endif
+
+ SkLayerRasterizer();
+ SkLayerRasterizer(SkDeque* layers);
+ SkLayerRasterizer(SkReadBuffer&);
static SkDeque* ReadLayers(SkReadBuffer& buffer);