From 81b77d5f3a64d1e482f6a722af3d354fc3817d09 Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Wed, 5 Sep 2018 16:56:38 +0900 Subject: [PATCH] lottie/vector: optimize VMatrix size requirement. Change-Id: I64efd97336904669d60c6ce99f83d5737f83d9b7 --- src/vector/vmatrix.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vector/vmatrix.h b/src/vector/vmatrix.h index 7acf53a..f09acbd 100644 --- a/src/vector/vmatrix.h +++ b/src/vector/vmatrix.h @@ -10,7 +10,7 @@ struct VMatrixData; class VMatrix { public: enum class Axis { X, Y, Z }; - enum class MatrixType { + enum class MatrixType: unsigned char { None = 0x00, Translate = 0x01, Scale = 0x02, @@ -55,11 +55,11 @@ public: private: friend struct VSpanData; - mutable MatrixType mType{MatrixType::None}; - mutable MatrixType dirty{MatrixType::None}; float m11{1}, m12{0}, m13{0}; float m21{0}, m22{1}, m23{0}; float mtx{0}, mty{0}, m33{1}; + mutable MatrixType mType{MatrixType::None}; + mutable MatrixType dirty{MatrixType::None}; }; inline VPointF VMatrix::map(float x, float y) const -- 2.34.1