diff options
Diffstat (limited to 'core/SkPaintPriv.h')
-rw-r--r-- | core/SkPaintPriv.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/SkPaintPriv.h b/core/SkPaintPriv.h index 38c9063e..9668fef1 100644 --- a/core/SkPaintPriv.h +++ b/core/SkPaintPriv.h @@ -22,4 +22,11 @@ class SkPaint; */ bool isPaintOpaque(const SkPaint* paint, const SkBitmap* bmpReplacesShader = NULL); + +/** Returns true if the provided paint has fields which are not + immutable (and will thus require deep copying). + @param paint the paint to be analyzed + @return true if the paint requires a deep copy +*/ +bool NeedsDeepCopy(const SkPaint& paint); #endif |