While they're not incorrect, I'm not enthusiastic for the new apis added to SkRect. Its ...
12 years, 7 months ago
(2012-05-15 12:31:01 UTC)
#3
While they're not incorrect, I'm not enthusiastic for the new apis added to
SkRect.
Its minor, but outset() kind of makes me think that inset() isn't really capable
of + and - values (and if have have positive dx and negative dy, which api
should I call?)
The new contains is correct, but inefficient since it has to convert ints to
floats, which I might prefer that the caller is made aware that this guy is
slower than the int version. Also, should we have SkIRect::contains(SkRect) for
completeness? I'm a little wary of expanding method apis to cover the
cross-product of the other related classes.
All that said, nothing is bad either. Can we place these two closer to the new
call sites as local helpers, and see how we like them over time?
After discussing with Mike, this delivery moves SkRect::contains(SkIRect) out of SkRect and into GrClipMaskManager. I ...
12 years, 7 months ago
(2012-05-15 13:36:07 UTC)
#4
After discussing with Mike, this delivery moves SkRect::contains(SkIRect) out of
SkRect and into GrClipMaskManager. I left outset in SkIRect to make its
interface better match SkRect's.
On 2012/05/15 13:36:07, robertphillips wrote: > After discussing with Mike, this delivery moves SkRect::contains(SkIRect) out ...
12 years, 7 months ago
(2012-05-15 14:36:04 UTC)
#5
On 2012/05/15 13:36:07, robertphillips wrote:
> After discussing with Mike, this delivery moves SkRect::contains(SkIRect) out
of
> SkRect and into GrClipMaskManager. I left outset in SkIRect to make its
> interface better match SkRect's.
Aside: my argument for outset is that we (or at least I) do it more often than
inset and its just easier to read outset(1, 1) than inset(-1, -1) in the same
way that it's easier to read "if (enabled)" over "if (!disabled)".
Issue 6210057: Convert AAClipCache's GrRects to GrIRects
(Closed)
Created 12 years, 7 months ago by robertphillips
Modified 12 years, 7 months ago
Reviewers: bsalomon, reed1
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 0