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

Issue 17035007: Fix quickReject computation for blurs (Closed)

Created:
7 years, 6 months ago by robertphillips
Modified:
7 years, 4 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Without this CL the quickReject code can sometimes incorrectly eliminate the edge of some blurs. One downside is that the gpu library now needs access to a src\effects header.

Patch Set 1 #

Patch Set 2 : Removed cruft #

Patch Set 3 : cleaned up #

Patch Set 4 : cleaned up more #

Total comments: 1

Patch Set 5 : New version based on in-person reviews #

Total comments: 1

Patch Set 6 : intermediate version to work on in the UK #

Patch Set 7 : Updated to ToT #

Patch Set 8 : updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -15 lines) Patch
A gm/blurquickreject.cpp View 1 2 3 4 5 6 7 1 chunk +82 lines, -0 lines 0 comments Download
M gyp/gmslides.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkBlurMask.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M src/effects/SkBlurMask.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -7 lines 0 comments Download
M src/effects/SkBlurMaskFilter.cpp View 1 2 3 4 5 6 7 5 chunks +27 lines, -8 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
robertphillips
7 years, 6 months ago (2013-06-14 16:02:43 UTC) #1
bsalomon
On 2013/06/14 16:02:43, robertphillips wrote: Egads. We need SkMaskFilter::filterMaskGPU(GrContext*, ...) so much.
7 years, 6 months ago (2013-06-14 16:10:22 UTC) #2
bsalomon
How important is it to fix the GPU aspect of this right now? Can it ...
7 years, 6 months ago (2013-06-14 16:15:31 UTC) #3
bsalomon
How important is it to fix the GPU aspect of this right now? Can it ...
7 years, 6 months ago (2013-06-14 16:15:31 UTC) #4
bsalomon
https://codereview.chromium.org/17035007/diff/18/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.chromium.org/17035007/diff/18/src/gpu/SkGpuDevice.cpp#newcode803 src/gpu/SkGpuDevice.cpp:803: float sigma = SkScalarToFloat(radius) * SkBlurMaskFilter::kBLUR_SIGMA_SCALE; Could the radius ...
7 years, 6 months ago (2013-06-14 18:23:54 UTC) #5
robertphillips
PTAL. This decouples the gpu and effect libs (via the SkMaskFilter::BlurInfo struct) and consolidates all ...
7 years, 6 months ago (2013-06-14 19:15:15 UTC) #6
bsalomon
On 2013/06/14 19:15:15, robertphillips wrote: > PTAL. This decouples the gpu and effect libs (via ...
7 years, 6 months ago (2013-06-14 19:31:44 UTC) #7
Stephen White
https://codereview.chromium.org/17035007/diff/15001/src/effects/SkBlurMaskFilter.cpp File src/effects/SkBlurMaskFilter.cpp (right): https://codereview.chromium.org/17035007/diff/15001/src/effects/SkBlurMaskFilter.cpp#newcode298 src/effects/SkBlurMaskFilter.cpp:298: // GPU path I guess there's no way to ...
7 years, 6 months ago (2013-06-14 19:37:38 UTC) #8
robertphillips
> I'll defer to others, but I don't get why the Info can't just return ...
7 years, 6 months ago (2013-06-14 19:58:44 UTC) #9
robertphillips
Back from the dead. PTAL. I have verified that without this patch the new GM ...
7 years, 4 months ago (2013-07-29 19:33:55 UTC) #10
reed1
Do we have a demo-CL ready on the Chrome side, document what the next step(s) ...
7 years, 4 months ago (2013-07-29 19:37:09 UTC) #11
robertphillips
committed as r10428. I have a TODO to convert Skia's API to take 'sigma' rather ...
7 years, 4 months ago (2013-07-30 12:22:29 UTC) #12
reed1
7 years, 4 months ago (2013-07-30 13:37:38 UTC) #13
Message was sent while issue was closed.
On 2013/07/30 12:22:29, robertphillips wrote:
> committed as r10428.
> 
> I have a TODO to convert Skia's API to take 'sigma' rather than radius but do
> not yet have a CL for that. I think the full solution will require 3 more CLs:
> 
> 1) alter the raster & GPU pipelines to use sigma & push the computation of
sigma
> from radius up the call stack & unify it.
> 2) Alter the external API to take sigma
> 3) Push the radius mashing up into Blink
> 
> With 2&3 happening in the same DEPS roll or separated by using a new API
(e.g.,
> deprecate the current Create method and add a new one).

SGTM -- lets make 1-3 happen soon.

Powered by Google App Engine
This is Rietveld 408576698