mark introspection methods as deprecated

Bug: skia:8941
Change-Id: Ibf2269787540df699e56f5241c2f5d2852616ff0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/205267
Auto-Submit: Mike Reed <reed@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
This commit is contained in:
Mike Reed 2019-04-01 15:07:04 -04:00 committed by Skia Commit-Bot
parent dcfbe32b21
commit e852427f1a
2 changed files with 6 additions and 4 deletions

View File

@ -32,21 +32,21 @@ class SkString;
*/
class SK_API SkColorFilter : public SkFlattenable {
public:
/**
/** DEPRECATED. skbug.com/8941
* If the filter can be represented by a source color plus Mode, this
* returns true, and sets (if not NULL) the color and mode appropriately.
* If not, this returns false and ignores the parameters.
*/
virtual bool asColorMode(SkColor* color, SkBlendMode* bmode) const;
/**
/** DEPRECATED. skbug.com/8941
* If the filter can be represented by a 5x4 matrix, this
* returns true, and sets the matrix appropriately.
* If not, this returns false and ignores the parameter.
*/
virtual bool asColorMatrix(SkScalar matrix[20]) const;
/**
/** DEPRECATED. skbug.com/8941
* If the filter can be represented by per-component table, return true,
* and if table is not null, copy the bitmap containing the table into it.
*

View File

@ -145,6 +145,7 @@ public:
uint32_t fGradientFlags; //!< see SkGradientShader::Flags
};
// DEPRECATED. skbug.com/8941
virtual GradientType asAGradient(GradientInfo* info) const;
#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
@ -153,6 +154,7 @@ public:
const SkShader* fShaderB;
SkBlendMode fBlendMode;
};
// DEPRECATED. skbug.com/8941
virtual bool asACompose(ComposeRec*) const { return false; }
#endif
@ -264,7 +266,7 @@ public:
static sk_sp<SkShader> MakePictureShader(sk_sp<SkPicture> src, TileMode tmx, TileMode tmy,
const SkMatrix* localMatrix, const SkRect* tile);
/**
/** DEPRECATED. skbug.com/8941
* If this shader can be represented by another shader + a localMatrix, return that shader and
* the localMatrix. If not, return nullptr and ignore the localMatrix parameter.
*/