Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: include/core/SkBitmap.h

Issue 66723017: Remove deprecated setIsOpaque() API from SkBitmap. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | samplecode/SampleTinyBitmap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkBitmap.h
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index 64f2e241337a5d8d9a75b34196963141215b4208..16f54b11090c3b392c193dfb094af4bcbef5f673 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -189,11 +189,6 @@ public:
return SkAlphaTypeIsOpaque(this->alphaType());
}
- SK_ATTR_DEPRECATED("use setAlphaType")
- void setIsOpaque(bool opaque) {
- this->setAlphaType(opaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType);
- }
-
/** Returns true if the bitmap is volatile (i.e. should not be cached by devices.)
*/
bool isVolatile() const;
@@ -238,8 +233,8 @@ public:
* it will return false.
*
* Since this can be an expensive operation, the bitmap stores a flag for
- * this (isOpaque, setIsOpaque). Only call this if you need to compute this
- * value from "unknown" pixels.
+ * this (isOpaque). Only call this if you need to compute this value from
+ * "unknown" pixels.
*/
static bool ComputeIsOpaque(const SkBitmap&);
« no previous file with comments | « no previous file | samplecode/SampleTinyBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698