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

Issue 6855098: Add a function that computes a reduced representation of the clip stack. (Closed)

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

Description

Add a function that computes a reduced representation of the clip stack. Also adds a unit test. The function is not yet used other than in the test. Committed: https://code.google.com/p/skia/source/detail?r=6553

Patch Set 1 #

Patch Set 2 : #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+554 lines, -3 lines) Patch
M include/core/SkClipStack.h View 1 chunk +14 lines, -2 lines 2 comments Download
M src/core/SkClipStack.cpp View 1 chunk +14 lines, -0 lines 0 comments Download
M src/gpu/GrClipMaskManager.h View 1 1 chunk +25 lines, -0 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 1 chunk +304 lines, -0 lines 2 comments Download
M tests/ClipStackTest.cpp View 3 chunks +197 lines, -1 line 7 comments Download

Messages

Total messages: 3
bsalomon
https://codereview.appspot.com/6855098/diff/2001/tests/ClipStackTest.cpp File tests/ClipStackTest.cpp (right): https://codereview.appspot.com/6855098/diff/2001/tests/ClipStackTest.cpp#newcode688 tests/ClipStackTest.cpp:688: // Is this correct? Ask Rob. ?
12 years ago (2012-11-26 19:25:36 UTC) #1
robertphillips
LGTM with nits https://codereview.appspot.com/6855098/diff/2001/include/core/SkClipStack.h File include/core/SkClipStack.h (right): https://codereview.appspot.com/6855098/diff/2001/include/core/SkClipStack.h#newcode149 include/core/SkClipStack.h:149: /** Do you think we will ...
12 years ago (2012-11-26 19:51:33 UTC) #2
bsalomon
12 years ago (2012-11-26 21:01:07 UTC) #3
https://codereview.appspot.com/6855098/diff/2001/include/core/SkClipStack.h
File include/core/SkClipStack.h (right):

https://codereview.appspot.com/6855098/diff/2001/include/core/SkClipStack.h#n...
include/core/SkClipStack.h:149: /**
On 2012/11/26 19:51:33, robertphillips wrote:
> Do you think we will ever add an inverse filled rect? I think we could change
> this comment to just be "Is the clip shape inverse filled?"

Done.

https://codereview.appspot.com/6855098/diff/2001/src/gpu/GrClipMaskManager.cpp
File src/gpu/GrClipMaskManager.cpp (right):

https://codereview.appspot.com/6855098/diff/2001/src/gpu/GrClipMaskManager.cp...
src/gpu/GrClipMaskManager.cpp:40: void GrReduceClipStack(const SkClipStack&
stack,
On 2012/11/26 19:51:33, robertphillips wrote:
> Maybe 'clips' -> 'resultClips'?

Done.

https://codereview.appspot.com/6855098/diff/2001/tests/ClipStackTest.cpp
File tests/ClipStackTest.cpp (right):

https://codereview.appspot.com/6855098/diff/2001/tests/ClipStackTest.cpp#newc...
tests/ClipStackTest.cpp:688: // Is this correct? Ask Rob.
On 2012/11/26 19:51:33, robertphillips wrote:
> I think it is correct but I would add an assert that it never happens.
> 

Updated comment, will figure out why we get here.

https://codereview.appspot.com/6855098/diff/2001/tests/ClipStackTest.cpp#newc...
tests/ClipStackTest.cpp:742: // Replace operations short-circuit the optimizer.
We want to make sure that we test this code
On 2012/11/26 19:51:33, robertphillips wrote:
> use -> us

Done.

https://codereview.appspot.com/6855098/diff/2001/tests/ClipStackTest.cpp#newc...
tests/ClipStackTest.cpp:771: SkSize size = SkSize::Make(
On 2012/11/26 19:51:33, robertphillips wrote:
> overlength lines?

I tried wrapping; it's worse :(
Sign in to reply to this message.

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