Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Issue 502953004: Improve performance of highQualityFilter (Closed)

Created:
6 years, 3 months ago by qiankun
Modified:
6 years, 3 months ago
Reviewers:
humper, mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Improve performance of highQualityFilter Move loop invariant caculation out of loop. This gives about 15% speedup for bitmap_BGRA_8888_A_scale_rotate_bicubic on my desktop i7-3770. BUG=skia: Committed: https://skia.googlesource.com/skia/+/d3f6e893df53fb0cfeefd01a8a49a77c72d742bd

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M src/core/SkBitmapFilter.cpp View 1 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
qiankun
qiankun.miao@intel.com changed reviewers: + humper@google.com, mtklein@google.com
6 years, 3 months ago (2014-08-26 10:12:10 UTC) #1
qiankun
PTAL.
6 years, 3 months ago (2014-08-26 10:12:10 UTC) #2
mtklein
https://codereview.chromium.org/502953004/diff/1/src/core/SkBitmapFilter.cpp File src/core/SkBitmapFilter.cpp (right): https://codereview.chromium.org/502953004/diff/1/src/core/SkBitmapFilter.cpp#newcode31 src/core/SkBitmapFilter.cpp:31: SkScalar* xWeights = SkNEW_ARRAY(SkScalar, maxX); I'd prefer SkAutoTMalloc<SkScalar> xWeights(maxX); ...
6 years, 3 months ago (2014-08-26 13:17:52 UTC) #3
reed1
reed@google.com changed reviewers: + reed@google.com
6 years, 3 months ago (2014-08-26 14:17:14 UTC) #4
reed1
15% sounds good https://codereview.chromium.org/502953004/diff/1/src/core/SkBitmapFilter.cpp File src/core/SkBitmapFilter.cpp (right): https://codereview.chromium.org/502953004/diff/1/src/core/SkBitmapFilter.cpp#newcode31 src/core/SkBitmapFilter.cpp:31: SkScalar* xWeights = SkNEW_ARRAY(SkScalar, maxX); On ...
6 years, 3 months ago (2014-08-26 14:17:14 UTC) #5
qiankun
https://codereview.chromium.org/502953004/diff/1/src/core/SkBitmapFilter.cpp File src/core/SkBitmapFilter.cpp (right): https://codereview.chromium.org/502953004/diff/1/src/core/SkBitmapFilter.cpp#newcode31 src/core/SkBitmapFilter.cpp:31: SkScalar* xWeights = SkNEW_ARRAY(SkScalar, maxX); On 2014/08/26 13:17:52, mtklein ...
6 years, 3 months ago (2014-08-26 14:26:50 UTC) #6
mtklein
lgtm
6 years, 3 months ago (2014-08-26 14:38:34 UTC) #7
qiankun
The CQ bit was checked by qiankun.miao@intel.com
6 years, 3 months ago (2014-08-27 01:58:53 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/qiankun.miao@intel.com/502953004/20001
6 years, 3 months ago (2014-08-27 01:59:21 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-08-27 02:06:48 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (20001) as d3f6e893df53fb0cfeefd01a8a49a77c72d742bd

Powered by Google App Engine
This is Rietveld 408576698