Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(22)

Issue 4841043: Clip GPU blur against (inflated) clip bounds (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by Stephen White
Modified:
13 years ago
Reviewers:
bsalomon, reed1
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Clip the size of the FBOs used for blurs to the bounds of the clipping region, inflated by the blur radius. This is a little tricky, since we want the rect we use for downsampling to be an integer multiple of the scale factor, so we scale down the clip rect to downsampled space, inflate by the (scaled) kernel width, and intersect the rects there. Also check the blur radius against 0 and abort early, to prevent the fuzzer blowing up on a missing uniform. http://code.google.com/p/skia/issues/detail?id=328

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update to latest & remove SkRect changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -4 lines) Patch
src/gpu/SkGpuDevice.cpp View 1 2 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 9
Stephen White
13 years, 1 month ago (2011-08-01 20:22:22 UTC) #1
bsalomon
http://codereview.appspot.com/4841043/diff/1/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): http://codereview.appspot.com/4841043/diff/1/src/gpu/SkGpuDevice.cpp#newcode848 src/gpu/SkGpuDevice.cpp:848: } Won't this cause us to fall back to ...
13 years, 1 month ago (2011-08-01 20:49:23 UTC) #2
reed1
I've recently updated the ceil and floor macros. In light of that, I've added roundOut() ...
13 years, 1 month ago (2011-08-01 20:54:18 UTC) #3
Stephen White
http://codereview.appspot.com/4841043/diff/1/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): http://codereview.appspot.com/4841043/diff/1/src/gpu/SkGpuDevice.cpp#newcode848 src/gpu/SkGpuDevice.cpp:848: } On 2011/08/01 20:49:23, bsalomon wrote: > Won't this ...
13 years, 1 month ago (2011-08-01 21:00:53 UTC) #4
bsalomon
Ah I see... Yeah, the case of the radius being smashed to zero by the ...
13 years, 1 month ago (2011-08-01 21:03:53 UTC) #5
Stephen White
Update to latest & remove SkRect changes
13 years, 1 month ago (2011-08-01 21:16:20 UTC) #6
reed1
LGTM
13 years, 1 month ago (2011-08-01 21:19:32 UTC) #7
bsalomon
Aye On Mon, Aug 1, 2011 at 5:19 PM, <reed@google.com> wrote: > LGTM > > ...
13 years, 1 month ago (2011-08-01 21:26:03 UTC) #8
Stephen White
13 years ago (2011-08-31 14:01:03 UTC) #9
On 2011/08/01 21:26:03, bsalomon wrote:
> Aye
> 
> On Mon, Aug 1, 2011 at 5:19 PM, <mailto:reed@google.com> wrote:
> 
> > LGTM
> >
> >
> >
>
http://codereview.appspot.com/**4841043/%3Chttp://codereview.appspot.com/4841...>
> >

This was landed way back in the year r2020.  Closing.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b