зеркало из https://github.com/mozilla/moz-skia.git
Remove deprecated setIsOpaque() API from SkBitmap.
Clients we care (Blink, Chromium) were updated, so we can remove this now. BUG=None R=bsalomon@google.com, reed@google.com Author: tfarina@chromium.org Review URL: https://codereview.chromium.org/66723017 git-svn-id: http://skia.googlecode.com/svn/trunk@12251 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
23a9121961
Коммит
21a0b10d7c
|
@ -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&);
|
||||
|
||||
|
|
|
@ -58,12 +58,6 @@ protected:
|
|||
static void setBitmapOpaque(SkBitmap* bm, bool isOpaque) {
|
||||
SkAutoLockPixels alp(*bm); // needed for ctable
|
||||
bm->setAlphaType(isOpaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType);
|
||||
#if 0
|
||||
SkColorTable* ctable = bm->getColorTable();
|
||||
if (ctable) {
|
||||
ctable->setIsOpaque(isOpaque);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
virtual void onDrawContent(SkCanvas* canvas) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче