DescriptionThis optimization was done on Android Gingerbread platform for SoftWeg benchmark.
The benefit can be measured by running following command on Android platform:
skia_bench -config 565 -match bitmap_8888_scale_filter -forceFilter 1 -repeat 30
The result I got on Android platform was below:
w/o this optimization routine:
D/skia ( 1868): running bench [640 480] bitmap_8888_scale_filter
D/skia ( 1868): 565: cmsecs = 286.50
w/ optimization:
D/skia ( 1463): running bench [640 480] bitmap_8888_scale_filter
D/skia ( 1463): 565: cmsecs = 186.80
The net gain is 34.80%.
Patch Set 1 #Patch Set 2 : add the declaration of S32_D16_filter_DX in SkBitmapProcState.h #Patch Set 3 : update the comments for the bench test case and debugging check #
MessagesTotal messages: 16
|