diff options
author | 2013-10-31 16:31:11 +0000 | |
---|---|---|
committer | 2013-10-31 16:31:11 +0000 | |
commit | 6fcbfcead5dc1b61fa5b4c139a1a3714e8c58091 (patch) | |
tree | c7bfb4b07deb28223c78af4de69e2440f34c3427 /include/core/SkBitmap.h | |
parent | 081560e3abe25c4821b79ca1465f4dbd371c4b5c (diff) |
Revert "add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning"
This reverts commit 1d22c4aaf9d8f053f25194a1ed74b137bfb19497.
git-svn-id: http://skia.googlecode.com/svn/trunk@12056 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkBitmap.h')
-rw-r--r-- | include/core/SkBitmap.h | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h index 59b6482735..3e22069e60 100644 --- a/include/core/SkBitmap.h +++ b/include/core/SkBitmap.h @@ -96,19 +96,20 @@ public: */ bool isNull() const { return NULL == fPixelRef; } - /** Return the config for the bitmap. */ + /** Return the config for the bitmap. + */ Config config() const { return (Config)fConfig; } - - SK_ATTR_DEPRECATED("use config()") + /** DEPRECATED, use config() + */ Config getConfig() const { return this->config(); } - - /** Return the bitmap's width, in pixels. */ + /** Return the bitmap's width, in pixels. + */ int width() const { return fWidth; } - - /** Return the bitmap's height, in pixels. */ + /** Return the bitmap's height, in pixels. + */ int height() const { return fHeight; } - - /** Return the number of bytes between subsequent rows of the bitmap. */ + /** Return the number of bytes between subsequent rows of the bitmap. + */ size_t rowBytes() const { return fRowBytes; } /** Return the shift amount per pixel (i.e. 0 for 1-byte per pixel, 1 for @@ -188,7 +189,9 @@ public: return SkAlphaTypeIsOpaque(this->alphaType()); } - SK_ATTR_DEPRECATED("use setAlphaType") + /** + * DEPRECATED: use setAlpahType() instead. + */ void setIsOpaque(bool opaque) { this->setAlphaType(opaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType); } @@ -416,7 +419,7 @@ public: */ void eraseARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) const; - SK_ATTR_DEPRECATED("use eraseARGB or eraseColor") + // DEPRECATED -- call eraseColor or eraseARGB void eraseRGB(U8CPU r, U8CPU g, U8CPU b) const { this->eraseARGB(0xFF, r, g, b); } @@ -550,7 +553,9 @@ public: */ bool canCopyTo(Config newConfig) const; - SK_ATTR_DEPRECATED("use setFilterLevel on SkPaint") + /** + * DEPRECATED -- will be replaced with API on SkPaint + */ void buildMipMap(bool forceRebuild = false); #ifdef SK_BUILD_FOR_ANDROID |