Deprecate two more functions using SK_ATTR_DEPRECATED macro.

BUG=None
TEST=None
R=reed@google.com, scroggo@google.com

Review URL: https://codereview.chromium.org/136973007

git-svn-id: http://skia.googlecode.com/svn/trunk@13079 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
tfarina@chromium.org 2014-01-15 00:19:21 +00:00
parent 96673a918d
commit 62f1048ada
2 changed files with 2 additions and 7 deletions

View File

@ -211,9 +211,7 @@ protected:
*/
virtual void clear(SkColor color) = 0;
/**
* Deprecated name for clear.
*/
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.

View File

@ -288,10 +288,7 @@ public:
*/
bool decodeSubset(SkBitmap* bm, const SkIRect& subset, SkBitmap::Config pref);
/**
* @Deprecated
* Use decodeSubset instead.
*/
SK_ATTR_DEPRECATED("use decodeSubset() instead")
bool decodeRegion(SkBitmap* bitmap, const SkIRect& rect, SkBitmap::Config pref) {
return this->decodeSubset(bitmap, rect, pref);
}