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

Issue 20789003: Small optimization for convolution shader: only apply the bounds check in (Closed)

Created:
7 years, 5 months ago by Stephen White
Modified:
7 years, 4 months ago
Reviewers:
robertphillips
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Small optimization for convolution shader: only apply the bounds check in direction of convolution, not both. This requires generating different versions of the shader depending on direction. R=robertphillips@google.com Committed: https://code.google.com/p/skia/source/detail?r=10417

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Update to ToT #

Total comments: 3

Patch Set 4 : Fix bounds arg size (4 -> 2). #

Patch Set 5 : Make direction() context #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -59 lines) Patch
M src/effects/SkGpuBlurUtils.cpp View 2 chunks +6 lines, -6 lines 0 comments Download
M src/gpu/effects/GrConvolutionEffect.h View 4 chunks +16 lines, -16 lines 0 comments Download
M src/gpu/effects/GrConvolutionEffect.cpp View 1 2 3 4 10 chunks +45 lines, -37 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Stephen White
Robert: PTAL. Thanks!
7 years, 4 months ago (2013-07-29 17:52:58 UTC) #1
robertphillips
Mainly concerned about the [4] sized parameters https://codereview.chromium.org/20789003/diff/5001/src/gpu/effects/GrConvolutionEffect.cpp File src/gpu/effects/GrConvolutionEffect.cpp (right): https://codereview.chromium.org/20789003/diff/5001/src/gpu/effects/GrConvolutionEffect.cpp#newcode36 src/gpu/effects/GrConvolutionEffect.cpp:36: bool useBounds() ...
7 years, 4 months ago (2013-07-29 18:02:38 UTC) #2
Stephen White
Thanks for the review! On 2013/07/29 18:02:38, robertphillips wrote: > Mainly concerned about the [4] ...
7 years, 4 months ago (2013-07-29 18:08:07 UTC) #3
robertphillips
lgtm
7 years, 4 months ago (2013-07-29 18:27:15 UTC) #4
Stephen White
7 years, 4 months ago (2013-07-29 18:45:49 UTC) #5
Message was sent while issue was closed.
Committed patchset #5 manually as r10417 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698