diff options
author | rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-06 15:37:53 +0000 |
---|---|---|
committer | rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-06 15:37:53 +0000 |
commit | d7a9fcc61f2c513064f67b125c0b2eb918768bb7 (patch) | |
tree | c56d6bf3dd8659758b12673668e54b51594b0a76 /src/core | |
parent | fd5c9a6e04ba31a82670d281b03b9c4a3f9b6e3c (diff) |
Revert of Manually set fFilterValues in SkConvolutionFilter1D
Revert of https://codereview.chromium.org/184323003
Reason for revert:
Caused unexpected CompareGM failures-
http://108.170.217.252:10117/builders/Test-Win8-ShuttleA-GTX660-x86_64-Debug/builds/461/steps/CompareGMs/logs/stdio
http://108.170.217.252:10117/builders/Test-Win7-ShuttleA-HD2000-x86_64-Release/builds/2062/steps/CompareGMs/logs/stdio
http://108.170.217.252:10117/builders/Test-ChromeOS-Alex-GMA3150-x86-Release/builds/1400/steps/CompareGMs/logs/stdio
TBR=
NOTREECHECKS=True
NOTRY=True
git-svn-id: http://skia.googlecode.com/svn/trunk@13683 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkConvolver.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/SkConvolver.cpp b/src/core/SkConvolver.cpp index e26c8e79e6..7666e6fadc 100644 --- a/src/core/SkConvolver.cpp +++ b/src/core/SkConvolver.cpp @@ -294,10 +294,8 @@ void SkConvolutionFilter1D::AddFilter(int filterOffset, filterLength = lastNonZero + 1 - firstNonZero; SkASSERT(filterLength > 0); - // Calling fFilterValues.reset(), or push_back() in a loop, are expensive. - fFilterValues.resize_back(filterLength); for (int i = firstNonZero; i <= lastNonZero; i++) { - fFilterValues[i - firstNonZero] = filterValues[i]; + fFilterValues.push_back(filterValues[i]); } } else { // Here all the factors were zeroes. |