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

Issue 6444048: Added ctor to SkClipStack and isEmpty method (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.

Description

The new ctor is/will be used is GrContext::AutoClip to create temporary clip stacks while isEmpty is/will be used in GrClipMaskManager to potentially avoid clipping.

Patch Set 1 #

Total comments: 3

Patch Set 2 : Renamed isEmpty -> isWideOpen #

Total comments: 2

Patch Set 3 : Added unit test #

Total comments: 2

Patch Set 4 : Stored back ptr in isWideOpen #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -0 lines) Patch
M include/core/SkClipStack.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M src/core/SkClipStack.cpp View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download
M tests/ClipStackTest.cpp View 1 2 3 chunks +74 lines, -0 lines 0 comments Download

Messages

Total messages: 10
robertphillips
12 years, 4 months ago (2012-07-25 21:30:06 UTC) #1
bsalomon
http://codereview.appspot.com/6444048/diff/1/include/core/SkClipStack.h File include/core/SkClipStack.h (right): http://codereview.appspot.com/6444048/diff/1/include/core/SkClipStack.h#newcode76 include/core/SkClipStack.h:76: bool isEmpty() const; IIRC Region uses "empty" to mean ...
12 years, 4 months ago (2012-07-26 12:28:38 UTC) #2
reed1
http://codereview.appspot.com/6444048/diff/1/include/core/SkClipStack.h File include/core/SkClipStack.h (right): http://codereview.appspot.com/6444048/diff/1/include/core/SkClipStack.h#newcode76 include/core/SkClipStack.h:76: bool isEmpty() const; On 2012/07/26 12:28:38, bsalomon wrote: > ...
12 years, 4 months ago (2012-07-26 14:14:49 UTC) #3
robertphillips
http://codereview.appspot.com/6444048/diff/1/include/core/SkClipStack.h File include/core/SkClipStack.h (right): http://codereview.appspot.com/6444048/diff/1/include/core/SkClipStack.h#newcode76 include/core/SkClipStack.h:76: bool isEmpty() const; On 2012/07/26 12:28:38, bsalomon wrote: > ...
12 years, 4 months ago (2012-07-26 15:37:27 UTC) #4
bsalomon
LGTM http://codereview.appspot.com/6444048/diff/4/src/core/SkClipStack.cpp File src/core/SkClipStack.cpp (right): http://codereview.appspot.com/6444048/diff/4/src/core/SkClipStack.cpp#newcode556 src/core/SkClipStack.cpp:556: (kInsideOut_BoundsType == ((Rec*)fDeque.back())->fFiniteBoundType && Does this bit need ...
12 years, 4 months ago (2012-07-26 15:46:51 UTC) #5
reed1
unittests? 1. a newly created clipstack: is it wide-open? 2. a newly created clipstack passed ...
12 years, 4 months ago (2012-07-26 16:11:03 UTC) #6
robertphillips
Added unit test http://codereview.appspot.com/6444048/diff/4/src/core/SkClipStack.cpp File src/core/SkClipStack.cpp (right): http://codereview.appspot.com/6444048/diff/4/src/core/SkClipStack.cpp#newcode556 src/core/SkClipStack.cpp:556: (kInsideOut_BoundsType == ((Rec*)fDeque.back())->fFiniteBoundType && On 2012/07/26 ...
12 years, 4 months ago (2012-07-26 17:46:11 UTC) #7
bsalomon
LGTM
12 years, 4 months ago (2012-07-26 17:49:52 UTC) #8
reed1
lgtm w/ question http://codereview.appspot.com/6444048/diff/6001/src/core/SkClipStack.cpp File src/core/SkClipStack.cpp (right): http://codereview.appspot.com/6444048/diff/6001/src/core/SkClipStack.cpp#newcode553 src/core/SkClipStack.cpp:553: minor, but should we consider caching ...
12 years, 4 months ago (2012-07-26 17:59:58 UTC) #9
robertphillips
12 years, 4 months ago (2012-07-26 18:39:36 UTC) #10
committed as r4787

http://codereview.appspot.com/6444048/diff/6001/src/core/SkClipStack.cpp
File src/core/SkClipStack.cpp (right):

http://codereview.appspot.com/6444048/diff/6001/src/core/SkClipStack.cpp#newc...
src/core/SkClipStack.cpp:553: 
On 2012/07/26 17:59:58, reed1 wrote:
> minor, but should we consider caching the return value from back(), since we
> reference it more than once?

Done.
Sign in to reply to this message.

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