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

Issue 6419048: Added bound computation to SkClipStack (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by robertphillips
Modified:
12 years, 4 months ago
Reviewers:
bsalomon, reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : removed isLargest, streamlined bound computation #

Total comments: 4

Patch Set 3 : Added unit test & addressed some code review issues #

Patch Set 4 : Simplified SkClipStack's get*Bounds interface via helper functions #

Total comments: 6

Patch Set 5 : Changed SkClipStack::getBounds' signature & fixed comment #

Patch Set 6 : Addressed code review issues #

Total comments: 9

Patch Set 7 : Made GetConservativeBounds non-static & renamed BoundType to BoundsType #

Patch Set 8 : messed up (uploaded from wrong view) #

Total comments: 2

Patch Set 9 : fixed function name #

Patch Set 10 : Checking to ensure no changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+512 lines, -11 lines) Patch
M include/core/SkClipStack.h View 1 2 3 4 5 6 7 8 2 chunks +37 lines, -0 lines 0 comments Download
M src/core/SkClipStack.cpp View 1 2 3 4 5 6 7 8 7 chunks +343 lines, -2 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 8 3 chunks +50 lines, -9 lines 0 comments Download
M tests/ClipStackTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +82 lines, -0 lines 0 comments Download

Messages

Total messages: 16
robertphillips
12 years, 4 months ago (2012-07-18 19:49:13 UTC) #1
robertphillips
From a conversation with Brian, I am going to try to hide the "isLargest" calls ...
12 years, 4 months ago (2012-07-19 19:47:29 UTC) #2
reed1
isLargest / setLargest are icky in general :) 1. unittests? 2. benchmarks? (i.e. are we ...
12 years, 4 months ago (2012-07-20 15:29:18 UTC) #3
robertphillips
PTAL 1) I will supply a unit test in the next patch 2) As far ...
12 years, 4 months ago (2012-07-20 18:30:22 UTC) #4
bsalomon
http://codereview.appspot.com/6419048/diff/3002/include/core/SkClipStack.h File include/core/SkClipStack.h (right): http://codereview.appspot.com/6419048/diff/3002/include/core/SkClipStack.h#newcode33 include/core/SkClipStack.h:33: SkIRect getIntBounds(const SkIPoint& offset, int width, int height) const; ...
12 years, 4 months ago (2012-07-20 19:03:26 UTC) #5
robertphillips
http://codereview.appspot.com/6419048/diff/3002/include/core/SkClipStack.h File include/core/SkClipStack.h (right): http://codereview.appspot.com/6419048/diff/3002/include/core/SkClipStack.h#newcode33 include/core/SkClipStack.h:33: SkIRect getIntBounds(const SkIPoint& offset, int width, int height) const; ...
12 years, 4 months ago (2012-07-20 20:17:29 UTC) #6
robertphillips
From a discussion w/ Brian, this patch moves the complexity of dealing w/ the infinite ...
12 years, 4 months ago (2012-07-22 14:27:32 UTC) #7
bsalomon
Mostly LGTM, small nits. reed@ should look since this class is his baby. http://codereview.appspot.com/6419048/diff/5009/include/core/SkClipStack.h File ...
12 years, 4 months ago (2012-07-23 12:24:17 UTC) #8
robertphillips
http://codereview.appspot.com/6419048/diff/5009/include/core/SkClipStack.h File include/core/SkClipStack.h (right): http://codereview.appspot.com/6419048/diff/5009/include/core/SkClipStack.h#newcode40 include/core/SkClipStack.h:40: bool getBounds(SkRect* bound) const; I have opted to return ...
12 years, 4 months ago (2012-07-23 13:19:48 UTC) #9
bsalomon
On 2012/07/23 13:19:48, robertphillips wrote: > http://codereview.appspot.com/6419048/diff/5009/include/core/SkClipStack.h > File include/core/SkClipStack.h (right): > > http://codereview.appspot.com/6419048/diff/5009/include/core/SkClipStack.h#newcode40 > ...
12 years, 4 months ago (2012-07-23 14:49:26 UTC) #10
robertphillips
This patch: replaces the fInverted boolean with an enum moves GetConservativeBounds into SkClipStack splits the ...
12 years, 4 months ago (2012-07-23 17:20:59 UTC) #11
reed1
http://codereview.appspot.com/6419048/diff/11002/include/core/SkClipStack.h File include/core/SkClipStack.h (left): http://codereview.appspot.com/6419048/diff/11002/include/core/SkClipStack.h#oldcode32 include/core/SkClipStack.h:32: BoundsType seems more natural and BoundType, unless we're talking ...
12 years, 4 months ago (2012-07-23 20:40:47 UTC) #12
robertphillips
Diffs may be a bit odd for this patch since path 7 was uploaded from ...
12 years, 4 months ago (2012-07-23 21:21:37 UTC) #13
reed1
lgtm http://codereview.appspot.com/6419048/diff/7010/include/core/SkClipStack.h File include/core/SkClipStack.h (right): http://codereview.appspot.com/6419048/diff/7010/include/core/SkClipStack.h#newcode168 include/core/SkClipStack.h:168: */ s/Get/get
12 years, 4 months ago (2012-07-23 21:36:00 UTC) #14
robertphillips
http://codereview.appspot.com/6419048/diff/7010/include/core/SkClipStack.h File include/core/SkClipStack.h (right): http://codereview.appspot.com/6419048/diff/7010/include/core/SkClipStack.h#newcode168 include/core/SkClipStack.h:168: */ On 2012/07/23 21:36:00, reed1 wrote: > s/Get/get Done.
12 years, 4 months ago (2012-07-24 13:26:48 UTC) #15
robertphillips
12 years, 4 months ago (2012-07-24 13:54:26 UTC) #16
committed as r4730
Sign in to reply to this message.

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