diff options
author | halcanary <halcanary@google.com> | 2014-12-03 10:41:11 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-03 10:41:11 -0800 |
commit | 8b0197ef2e32be9d62e79d58f8b50811975c79c6 (patch) | |
tree | b3ea63a4899a3a181d340663414f9809cfa56809 | |
parent | 378092f3d10b1dd62967f419c35cfefec7c10ee7 (diff) |
Revert of remove unused device::eraseColor (patchset #1 id:1 of https://codereview.chromium.org/765643004/)
Reason for revert:
../../skia/ext/bitmap_platform_device_cairo.cc:131:13: error: no member named 'eraseColor' in 'skia::BitmapPlatformDevice'
Original issue's description:
> remove unused device::eraseColor
>
> BUG=skia:
> TBR=
>
> Committed: https://skia.googlesource.com/skia/+/b1ab276c3719d6690e58f347c25126d2b8929c5d
TBR=reed@google.com
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/777003002
-rw-r--r-- | include/core/SkDevice.h | 3 |
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 |