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

Issue 6434050: Added isIntersectionOfRects to SkClipStack (Closed)

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

Description

This replicates a small chunk of GrClip's functionality in SkClipStack

Patch Set 1 #

Patch Set 2 : Cleaned up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -19 lines) Patch
M include/core/SkClipStack.h View 1 3 chunks +16 lines, -4 lines 0 comments Download
M src/core/SkClipStack.cpp View 1 9 chunks +38 lines, -7 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 1 chunk +6 lines, -1 line 0 comments Download
M tests/ClipStackTest.cpp View 1 4 chunks +23 lines, -7 lines 0 comments Download

Messages

Total messages: 9
robertphillips
12 years, 3 months ago (2012-07-24 20:21:44 UTC) #1
reed1
lgtm 1. are you saving the return value of getBounds for some awesome other value? ...
12 years, 3 months ago (2012-07-24 20:30:10 UTC) #2
robertphillips
1) Nope - it has just evolved that way. If we adopt my proposal for ...
12 years, 3 months ago (2012-07-24 20:50:07 UTC) #3
bsalomon
On 2012/07/24 20:30:10, reed1 wrote: > lgtm > > 1. are you saving the return ...
12 years, 3 months ago (2012-07-24 20:50:23 UTC) #4
robertphillips
committed as r4745
12 years, 3 months ago (2012-07-24 22:08:05 UTC) #5
robertphillips
Any thoughts on returning bit flags from getBound?
12 years, 3 months ago (2012-07-26 15:38:43 UTC) #6
bsalomon
On 2012/07/26 15:38:43, robertphillips wrote: > Any thoughts on returning bit flags from getBound? Seems ...
12 years, 3 months ago (2012-07-26 16:24:56 UTC) #7
reed1
does isIntersectionOfRects mean that the finite-bounds is the exact answer, or just that there were ...
12 years, 3 months ago (2012-07-26 17:57:23 UTC) #8
robertphillips
12 years, 3 months ago (2012-07-26 18:46:46 UTC) #9
isIntersectionOfRects means that the finite-bounds is the exact answer.
Currently it is only set if no paths were involved and only Replace & Intersect
ops were used.

I would hope the bitfield would include both the bound type enum and some extra
flags about the bound (e.g., isIntersectionOfRects) both in Rec and as a return
value.
Sign in to reply to this message.

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