aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/core/SkCanvas.h2
-rw-r--r--public.bzl1
2 files changed, 3 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
diff --git a/public.bzl b/public.bzl
index ef99c9fb37..99ccde3808 100644
--- a/public.bzl
+++ b/public.bzl
@@ -550,6 +550,7 @@ DEFINES_ALL = [
"SK_SUPPORT_LEGACY_COLORFILTER_PTR",
"SK_SUPPORT_LEGACY_CREATESHADER_PTR",
"SK_SUPPORT_LEGACY_IMAGEFILTER_PTR",
+ "SK_SUPPORT_LEGACY_LAYERITER",
"SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR",
"SK_SUPPORT_LEGACY_NEW_SURFACE_API",
"SK_SUPPORT_LEGACY_PATHEFFECT_PTR",