aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPath.cpp
diff options
context:
space:
mode:
authorGravatar djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-29 18:52:07 +0000
committerGravatar djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-29 18:52:07 +0000
commitc9ab987efcb7e8b69237d565f73c28c137610232 (patch)
tree47a90504ac910f9e58d55081a3088b5432fd9ce6 /src/core/SkPath.cpp
parentb947b91794f47cc92b17c83e570536f5e315a118 (diff)
Implement multi-threaded picture playback via cloning.
The CL adds SkPicture.clone() which produces a thread-safe copy by creating a shallow copy of the thread-safe data within the picture and a deep copy of the data that is not (e.g. SkPaint). This implementation re-flattens the paints when cloning instead of retaining the flattened paints from the recording process. Changes were also needed to various classes to ensure thread safety Review URL: https://codereview.appspot.com/6459105 git-svn-id: http://skia.googlecode.com/svn/trunk@5335 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPath.cpp')
-rw-r--r--src/core/SkPath.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index 0b1444ca11..dd9249d608 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -457,8 +457,8 @@ void SkPath::computeBounds() const {
SkDEBUGCODE(this->validate();)
SkASSERT(fBoundsIsDirty);
- fBoundsIsDirty = false;
fIsFinite = compute_pt_bounds(&fBounds, fPts);
+ fBoundsIsDirty = false;
}
void SkPath::setConvexity(Convexity c) {