aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2014-10-15 13:43:36 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-15 13:43:36 -0700
commit80a720eb823ac76fdfa254fe9b9f7333a1458e5c (patch)
tree59f4144a56702dfec62ed19df0a12fa93a1e6c5c /src
parent3ac569b37a5b4fa5072f4d8ed946f0eea24e9020 (diff)
Remove unused NeedsDeepCopy.
It was used to check to see if an SkPaint had mutable fields on it. Now that all the fields are immutable, this function is no longer used. Remove it. BUG=skia:2097 Review URL: https://codereview.chromium.org/661543002
Diffstat (limited to 'src')
-rw-r--r--src/core/SkPaintPriv.cpp11
-rw-r--r--src/core/SkPaintPriv.h7
2 files changed, 0 insertions, 18 deletions
diff --git a/src/core/SkPaintPriv.cpp b/src/core/SkPaintPriv.cpp
index d7b3032227..ce05389019 100644
--- a/src/core/SkPaintPriv.cpp
+++ b/src/core/SkPaintPriv.cpp
@@ -76,14 +76,3 @@ bool isPaintOpaque(const SkPaint* paint,
}
return false;
}
-
-bool NeedsDeepCopy(const SkPaint& paint) {
- /*
- * The types below are not yet immutable/reentrant-safe, and so we return
- * true if instances of them are present in the paint.
- *
- * Eventually we hope this list will be empty, and we can always return
- * false.
- */
- return paint.getImageFilter();
-}
diff --git a/src/core/SkPaintPriv.h b/src/core/SkPaintPriv.h
index 9668fef127..38c9063e56 100644
--- a/src/core/SkPaintPriv.h
+++ b/src/core/SkPaintPriv.h
@@ -22,11 +22,4 @@ 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