comparison src/graph_engine_skia.cpp @ 497:6abc53f00792 Android_Skia

It may not need to call unref() for xfermode object. unref() makes compile-time fault. It seems Skia don't want we to call it. It is removed temporary and should be reviewed, later.
author Thinker K.F. Li <thinker@branda.to>
date Thu, 26 Nov 2009 15:03:01 +0800
parents 9e36e06fcc18
children b106fa78a090
comparison
equal deleted inserted replaced
496:71ad34f73a6e 497:6abc53f00792
755 SkXfermode *mode; 755 SkXfermode *mode;
756 756
757 _prepare_paint(canvas, SkPaint::kFill_Style); 757 _prepare_paint(canvas, SkPaint::kFill_Style);
758 mode = SkPorterDuff::CreateXfermode(SkPorterDuff::kSrc_Mode); 758 mode = SkPorterDuff::CreateXfermode(SkPorterDuff::kSrc_Mode);
759 paint->setXfermode(mode); 759 paint->setXfermode(mode);
760 mode->unref(); 760 /* mode->unref(); */
761 761
762 canvas->canvas->drawPaint(*paint); 762 canvas->canvas->drawPaint(*paint);
763 763
764 _finish_paint(canvas); 764 _finish_paint(canvas);
765 } 765 }