DescriptionThe optimization routines are decal_filter_scale and decal_nofilter_scale. Below command is what I used to get the improvement on Android platform. ./skia_bench -config 8888 -match bitmap_8888_scale -repeat 200 w/o these opts: D/skia ( 1803): running bench [640 480] bitmap_8888_scale D/skia ( 1803): 8888: cmsecs = 55.02 D/skia ( 1803): running bench [640 480] bitmap_8888_scale_filter D/skia ( 1803): 8888: cmsecs = 162.63 w/ these opts: D/skia ( 4947): running bench [640 480] bitmap_8888_scale D/skia ( 4947): 8888: cmsecs = 53.40 D/skia ( 4947): running bench [640 480] bitmap_8888_scale_filter D/skia ( 4947): 8888: cmsecs = 157.67 Actually the benefits are not significant. I ran several times and the result is stable. The net gain is about 3% Patch Set 1 #Patch Set 2 : updated patch #Patch Set 3 : updated the patch after changing the flag from USE_SSE2 to SK_CPU_SSE_LEVEL #Patch Set 4 : changed the SSE2 check condition at compile time #Patch Set 5 : updated SSE2 check condition at compile time #Patch Set 6 : only include matrix optimizations # Total comments: 1 MessagesTotal messages: 29 |