DescriptionManually set fFilterValues in SkConvolutionFilter1D.
Using fFilterValues.reset() or a loop of fFilterValues.push_back() is about 5x slower than calling fFilterValues.resize_back() and then looping using primitive [] and =.
This is only going to show up if you apply https://codereview.chromium.org/183763047/, where it yields about 2.5% speedup in the bitmap resize microbenchmarks on a Linux desktop. Ceteris paribus, it should actually improve rasterization time of drawBitmapRectToRect() with a resize by about 5% in Chromium.
BUG=skia:2258
R=humper@google.com
Committed: http://code.google.com/p/skia/source/detail?r=13681
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Messages
Total messages: 15 (0 generated)
|