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
From a conversation with Brian, I am going to try to hide the "isLargest" calls
w/in SkClipStack and make the SkClipStack code rely on the "setLargest" calls
less (i.e., add an "isInfinite" flag).
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
From a discussion w/ Brian, this patch moves the complexity of dealing w/ the
infinite bounds out of SkClipStack::get*Bounds and into SkClipStack's
GetConservativeBounds helper function and SkGpuDevice's check_bounds helper
function.
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
12 years, 4 months ago
(2012-07-23 14:49:26 UTC)
#10
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#ne...
> include/core/SkClipStack.h:40: bool getBounds(SkRect* bound) const;
> I have opted to return the inversion state in a parameter. The next patch to
> this class will add an "intersectionOfRects" parameter (to capture GrClip's
> isectRectValid functionality) so I thought this solution would fit better with
> where the class is heading.
>
>
http://codereview.appspot.com/6419048/diff/5009/include/core/SkClipStack.h#ne...
> include/core/SkClipStack.h:155: * get_conservative_bounds returns a
conservative
> bound of the current clip.
> On 2012/07/23 12:24:17, bsalomon wrote:
> > Comment doesn't match function name.
>
> Done.
>
>
http://codereview.appspot.com/6419048/diff/5009/include/core/SkClipStack.h#ne...
> include/core/SkClipStack.h:160: * drawing areas (i.e., those resulting from a
> saveLayer).
> On 2012/07/23 12:24:17, bsalomon wrote:
> > Maybe the comment should be really clear that the bounds is first translated
> by
> > -origin and then intersected with [0,maxWidth)x[0,maxHeight).
>
> Done.
LGTM
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
This patch:
replaces the fInverted boolean with an enum
moves GetConservativeBounds into SkClipStack
splits the origin parameter to GetConservativeBounds into x & y components
Issue 6419048: Added bound computation to SkClipStack
(Closed)
Created 12 years, 4 months ago by robertphillips
Modified 12 years, 4 months ago
Reviewers: reed1, bsalomon
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 21