aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-26 11:39:41 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-26 11:39:41 +0000
commiteebb4a2681af98047a804b6f8d4d76e0cd40ab76 (patch)
tree96e4f9b20dab5a8904aa9d49b532282235dbb04b /src
parent3272ba8abcf322f5e9bcf2f7f2dcddaf68550268 (diff)
balance the call to matrix::flatten from r1414. Formerly both of these were
just memcpy. This fixes a regression when using matrices in pictures. git-svn-id: http://skia.googlecode.com/svn/trunk@1428 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/core/SkPictureFlat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkPictureFlat.h b/src/core/SkPictureFlat.h
index dae7b8aed0..697b399a6a 100644
--- a/src/core/SkPictureFlat.h
+++ b/src/core/SkPictureFlat.h
@@ -147,7 +147,7 @@ public:
static SkFlatMatrix* Flatten(SkChunkAlloc* heap, const SkMatrix& matrix, int index);
void unflatten(SkMatrix* result) const {
- memcpy(result, fMatrixData, sizeof(SkMatrix));
+ result->unflatten(fMatrixData);
}
#ifdef SK_DEBUG_DUMP