aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/core/SkDevice.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
index 833e452fab..3c26baca5b 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -166,6 +166,9 @@ protected:
*/
virtual void clear(SkColor color) = 0;
+ SK_ATTR_DEPRECATED("use clear() instead")
+ void eraseColor(SkColor eraseColor) { this->clear(eraseColor); }
+
/** These are called inside the per-device-layer loop for each draw call.
When these are called, we have already applied any saveLayer operations,
and are handling any looping from the paint, and any effects from the