Index: include/core/SkBitmap.h |
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h |
index c070203d04f4bfe9d5e087498bf5427f71e62abb..b13b6f74515cbb29f4ecec22fd48aa9270c7009c 100644 |
--- a/include/core/SkBitmap.h |
+++ b/include/core/SkBitmap.h |
@@ -473,10 +473,7 @@ public: |
* of the color is ignored (treated as opaque). If the colortype only supports |
* alpha (e.g. A1 or A8) then the color's r,g,b components are ignored. |
*/ |
- void eraseColor(SkColor c) const { |
- this->eraseARGB(SkColorGetA(c), SkColorGetR(c), SkColorGetG(c), |
- SkColorGetB(c)); |
- } |
+ void eraseColor(SkColor c) const; |
/** |
* Fill the entire bitmap with the specified color. |
@@ -484,7 +481,9 @@ public: |
* of the color is ignored (treated as opaque). If the colortype only supports |
* alpha (e.g. A1 or A8) then the color's r,g,b components are ignored. |
*/ |
- void eraseARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) const; |
+ void eraseARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) const { |
+ this->eraseColor(SkColorSetARGB(a, r, g, b)); |
+ } |
SK_ATTR_DEPRECATED("use eraseARGB or eraseColor") |
void eraseRGB(U8CPU r, U8CPU g, U8CPU b) const { |
@@ -497,7 +496,12 @@ public: |
* of the color is ignored (treated as opaque). If the colortype only supports |
* alpha (e.g. A1 or A8) then the color's r,g,b components are ignored. |
*/ |
- void eraseArea(const SkIRect& area, SkColor c) const; |
+ void erase(SkColor c, const SkIRect& area) const; |
+ |
+ // DEPRECATED |
+ void eraseArea(const SkIRect& area, SkColor c) const { |
+ this->erase(c, area); |
+ } |
/** |
* Return the SkColor of the specified pixel. In most cases this will |
@@ -736,13 +740,9 @@ private: |
}; |
SkImageInfo fInfo; |
- |
uint32_t fRowBytes; |
- |
uint8_t fFlags; |
- void internalErase(const SkIRect&, U8CPU a, U8CPU r, U8CPU g, U8CPU b)const; |
- |
/* Unreference any pixelrefs or colortables |
*/ |
void freePixels(); |