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:
parent
dcfbe32b21
commit
e852427f1a
@ -32,21 +32,21 @@ class SkString;
|
|||||||
*/
|
*/
|
||||||
class SK_API SkColorFilter : public SkFlattenable {
|
class SK_API SkColorFilter : public SkFlattenable {
|
||||||
public:
|
public:
|
||||||
/**
|
/** DEPRECATED. skbug.com/8941
|
||||||
* If the filter can be represented by a source color plus Mode, this
|
* 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.
|
* returns true, and sets (if not NULL) the color and mode appropriately.
|
||||||
* If not, this returns false and ignores the parameters.
|
* If not, this returns false and ignores the parameters.
|
||||||
*/
|
*/
|
||||||
virtual bool asColorMode(SkColor* color, SkBlendMode* bmode) const;
|
virtual bool asColorMode(SkColor* color, SkBlendMode* bmode) const;
|
||||||
|
|
||||||
/**
|
/** DEPRECATED. skbug.com/8941
|
||||||
* If the filter can be represented by a 5x4 matrix, this
|
* If the filter can be represented by a 5x4 matrix, this
|
||||||
* returns true, and sets the matrix appropriately.
|
* returns true, and sets the matrix appropriately.
|
||||||
* If not, this returns false and ignores the parameter.
|
* If not, this returns false and ignores the parameter.
|
||||||
*/
|
*/
|
||||||
virtual bool asColorMatrix(SkScalar matrix[20]) const;
|
virtual bool asColorMatrix(SkScalar matrix[20]) const;
|
||||||
|
|
||||||
/**
|
/** DEPRECATED. skbug.com/8941
|
||||||
* If the filter can be represented by per-component table, return true,
|
* 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.
|
* and if table is not null, copy the bitmap containing the table into it.
|
||||||
*
|
*
|
||||||
|
@ -145,6 +145,7 @@ public:
|
|||||||
uint32_t fGradientFlags; //!< see SkGradientShader::Flags
|
uint32_t fGradientFlags; //!< see SkGradientShader::Flags
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// DEPRECATED. skbug.com/8941
|
||||||
virtual GradientType asAGradient(GradientInfo* info) const;
|
virtual GradientType asAGradient(GradientInfo* info) const;
|
||||||
|
|
||||||
#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
|
#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
|
||||||
@ -153,6 +154,7 @@ public:
|
|||||||
const SkShader* fShaderB;
|
const SkShader* fShaderB;
|
||||||
SkBlendMode fBlendMode;
|
SkBlendMode fBlendMode;
|
||||||
};
|
};
|
||||||
|
// DEPRECATED. skbug.com/8941
|
||||||
virtual bool asACompose(ComposeRec*) const { return false; }
|
virtual bool asACompose(ComposeRec*) const { return false; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -264,7 +266,7 @@ public:
|
|||||||
static sk_sp<SkShader> MakePictureShader(sk_sp<SkPicture> src, TileMode tmx, TileMode tmy,
|
static sk_sp<SkShader> MakePictureShader(sk_sp<SkPicture> src, TileMode tmx, TileMode tmy,
|
||||||
const SkMatrix* localMatrix, const SkRect* tile);
|
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
|
* 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.
|
* the localMatrix. If not, return nullptr and ignore the localMatrix parameter.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user