aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-04-21 15:22:14 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-21 15:22:14 -0700
commitcb61a6452fbf9b147dc9d3f31bf520efb0e2c7fd (patch)
tree4a9046846b5c04e2e6ea5fb87e6640c553a714ab /include
parentb0d4352ca610654f98c3c4ebc67ed9ad9c8c8493 (diff)
Add compile guard for SkCanvas::LayerIter
Diffstat (limited to 'include')
-rw-r--r--include/core/SkCanvas.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index e7b75713f6..4f15af8647 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -1220,7 +1220,9 @@ public:
///////////////////////////////////////////////////////////////////////////
+#ifndef SK_SUPPORT_LEGACY_LAYERITER
protected:
+#endif
/** After calling saveLayer(), there can be any number of devices that make
up the top-most drawing area. LayerIter can be used to iterate through
those devices. Note that the iterator is only valid until the next API