lottieitem: Add alpha property in LOTMask 75/199275/2 accepted/tizen/unified/20190214.060609 submit/tizen/20190211.061543 submit/tizen/20190211.061921 submit/tizen/20190213.001307 submit/tizen/20190213.060634 submit/tizen/20190213.062652
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 8 Feb 2019 05:51:11 +0000 (14:51 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 8 Feb 2019 07:05:13 +0000 (16:05 +0900)
Change-Id: I929839c5a0a1677a530b5197e45ec230ea145dd1

inc/rlottiecommon.h
src/lottie/lottieitem.cpp

index edc6299..cc198a4 100644 (file)
@@ -130,6 +130,8 @@ typedef struct LOTMask {
         int          elmCount;
     } mPath;
     LOTMaskMode mMode;
+
+    int mAlpha;
 }LOTMask;
 
 typedef enum
index 6e78206..21a2e13 100644 (file)
@@ -230,6 +230,7 @@ void LOTLayerItem::buildLayerNode()
             cNode.mPath.ptCount = pts.size();
             cNode.mPath.elmPtr = elmPtr;
             cNode.mPath.elmCount = elm.size();
+            cNode.mAlpha = mask.mCombinedAlpha * 255;
             switch (mask.maskMode()) {
             case LOTMaskData::Mode::Add:
                 cNode.mMode = MaskModeAdd;