lottie: optimize VColor structure. 65/188465/2
authorsubhransu mohanty <sub.mohanty@samsung.com>
Wed, 5 Sep 2018 07:47:09 +0000 (16:47 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 5 Sep 2018 10:56:20 +0000 (10:56 +0000)
uchar is enough to store 0-255 possible color value.

Change-Id: Iaf6a24dd99158483723e98a930f12478770fac58

src/vector/vglobal.h

index a46742f..f23719b 100644 (file)
@@ -260,10 +260,10 @@ public:
     }
 
 public:
-    ushort a;
-    ushort r;
-    ushort g;
-    ushort b;
+    uchar a;
+    uchar r;
+    uchar g;
+    uchar b;
 };
 
 enum class FillRule { EvenOdd, Winding };