trial & error: to fix the lottie packaging issue in vd. 12/213912/1
authorHermet Park <hermetpark@gmail.com>
Mon, 16 Sep 2019 10:30:58 +0000 (19:30 +0900)
committerHermet Park <hermetpark@gmail.com>
Mon, 16 Sep 2019 10:30:58 +0000 (19:30 +0900)
no exact clue yet, check whether this affects the issue or not.

Change-Id: I7944ebab8b52b3edc2b5395ed49a566608154244

src/vector/vdrawhelper.cpp

index 771228e..78a4519 100644 (file)
@@ -187,7 +187,7 @@ bool VGradientCache::generateGradientColorTable(const VGradientStops &stops,
     return alpha;
 }
 
-static VGradientCache VGradientCacheInstance;
+//static VGradientCache VGradientCacheInstance;
 
 void VRasterBuffer::clear()
 {
@@ -758,6 +758,7 @@ void VSpanData::setup(const VBrush &brush, VPainter::CompositionMode /*mode*/,
         mSolid = brush.mColor.premulARGB();
         break;
     case VBrush::Type::LinearGradient: {
+#if 0
         mType = VSpanData::Type::LinearGradient;
         mColorTable = VGradientCacheInstance.getBuffer(*brush.mGradient);
         mGradient.mColorTable = mColorTable->buffer32;
@@ -769,8 +770,10 @@ void VSpanData::setup(const VBrush &brush, VPainter::CompositionMode /*mode*/,
         mGradient.mSpread = brush.mGradient->mSpread;
         setupMatrix(brush.mGradient->mMatrix);
         break;
+#endif
     }
     case VBrush::Type::RadialGradient: {
+#if 0
         mType = VSpanData::Type::RadialGradient;
         mColorTable = VGradientCacheInstance.getBuffer(*brush.mGradient);
         mGradient.mColorTable = mColorTable->buffer32;
@@ -784,6 +787,7 @@ void VSpanData::setup(const VBrush &brush, VPainter::CompositionMode /*mode*/,
         mGradient.mSpread = brush.mGradient->mSpread;
         setupMatrix(brush.mGradient->mMatrix);
         break;
+#endif
     }
     case VBrush::Type::Texture: {
         mType = VSpanData::Type::Texture;