am 54d1f043: Merge "Simplify matrix copy constructor/load" into mnc-dev
* commit '54d1f0439eb0fef47e9e9c7ac3d6ec5b283c4793': Simplify matrix copy constructor/load
This commit is contained in:
@@ -155,8 +155,7 @@ void Matrix4::load(const float* v) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Matrix4::load(const Matrix4& v) {
|
void Matrix4::load(const Matrix4& v) {
|
||||||
memcpy(data, v.data, sizeof(data));
|
*this = v;
|
||||||
mType = v.getType();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Matrix4::load(const SkMatrix& v) {
|
void Matrix4::load(const SkMatrix& v) {
|
||||||
|
|||||||
@@ -85,10 +85,6 @@ public:
|
|||||||
load(v);
|
load(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
Matrix4(const Matrix4& v) {
|
|
||||||
load(v);
|
|
||||||
}
|
|
||||||
|
|
||||||
Matrix4(const SkMatrix& v) {
|
Matrix4(const SkMatrix& v) {
|
||||||
load(v);
|
load(v);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user