Merge "Simplify matrix copy constructor/load" into mnc-dev

This commit is contained in:
Chris Craik
2015-07-07 19:09:41 +00:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 6 deletions

View File

@@ -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) {

View File

@@ -85,10 +85,6 @@ public:
load(v);
}
Matrix4(const Matrix4& v) {
load(v);
}
Matrix4(const SkMatrix& v) {
load(v);
}