From d2bfcc74fcea6d5ee199da514e075efeeb1165fd Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Tue, 7 Jul 2015 09:59:23 -0700 Subject: Simplify matrix copy constructor/load bug:22208220 Change-Id: Id096eb8de8da0dd1687d6af9456b16ce2a1a589b --- libs/hwui/Matrix.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libs/hwui/Matrix.cpp') diff --git a/libs/hwui/Matrix.cpp b/libs/hwui/Matrix.cpp index 061d26ab5954..06e67c0e85ad 100644 --- a/libs/hwui/Matrix.cpp +++ b/libs/hwui/Matrix.cpp @@ -155,8 +155,7 @@ void Matrix4::load(const float* v) { } void Matrix4::load(const Matrix4& v) { - memcpy(data, v.data, sizeof(data)); - mType = v.getType(); + *this = v; } void Matrix4::load(const SkMatrix& v) { -- cgit v1.2.3-59-g8ed1b