summaryrefslogtreecommitdiff
path: root/core/SkPaintPriv.h
diff options
context:
space:
mode:
authorAndroid Chromium Automerger <chromium-automerger@android>2014-05-05 23:55:00 +0000
committerAndroid Chromium Automerger <chromium-automerger@android>2014-05-05 23:55:00 +0000
commitb4711302d408d8eaa5549aeaf35dc809395c6372 (patch)
tree13109220ebe203b1026d1f499a7eea0df826f830 /core/SkPaintPriv.h
parent1abe0e981de19b02c442866e0ff80cb3d0bcc1da (diff)
parent49a30064bc69cb8638e7cecf1e9a7d58fc718716 (diff)
downloadsrc-b4711302d408d8eaa5549aeaf35dc809395c6372.tar.gz
Merge third_party/skia/src from https://chromium.googlesource.com/external/skia/src.git at 49a30064bc69cb8638e7cecf1e9a7d58fc718716
This commit was generated by merge_from_chromium.py. Change-Id: I9f227703eb8587f893f0c5f7683dd790fce58c22
Diffstat (limited to 'core/SkPaintPriv.h')
-rw-r--r--core/SkPaintPriv.h7
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