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

Issue 6443132: add SkClipStack::clipEmpty() as an optimized way to say clipDevRect(empty, intersect) (Closed)

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

Description

add SkClipStack::clipEmpty() as an optimized way to say clipDevRect(empty, intersect) if the caller knows up-front that it wants the clipstact to become empty. Committed: https://code.google.com/p/skia/source/detail?r=5127

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -0 lines) Patch
M include/core/SkClipStack.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/core/SkClipStack.cpp View 1 2 3 chunks +32 lines, -0 lines 0 comments Download

Messages

Total messages: 8
reed1
12 years, 4 months ago (2012-08-15 19:08:43 UTC) #1
robertphillips
LGTM
12 years, 4 months ago (2012-08-15 19:11:31 UTC) #2
TomH
Use SkNEW_PLACEMENT_ARGS?
12 years, 4 months ago (2012-08-15 19:11:58 UTC) #3
TomH
https://codereview.appspot.com/6443132/diff/2001/src/core/SkClipStack.cpp File src/core/SkClipStack.cpp (right): https://codereview.appspot.com/6443132/diff/2001/src/core/SkClipStack.cpp#newcode651 src/core/SkClipStack.cpp:651: Rec* rec = (Rec*) iter.prev(); Not constant time accessor?!
12 years, 4 months ago (2012-08-15 19:16:13 UTC) #4
reed1
http://codereview.appspot.com/6443132/diff/2001/src/core/SkClipStack.cpp File src/core/SkClipStack.cpp (right): http://codereview.appspot.com/6443132/diff/2001/src/core/SkClipStack.cpp#newcode651 src/core/SkClipStack.cpp:651: Rec* rec = (Rec*) iter.prev(); On 2012/08/15 19:16:14, TomH ...
12 years, 4 months ago (2012-08-16 15:59:30 UTC) #5
robertphillips
http://codereview.appspot.com/6443132/diff/2001/src/core/SkClipStack.cpp File src/core/SkClipStack.cpp (right): http://codereview.appspot.com/6443132/diff/2001/src/core/SkClipStack.cpp#newcode651 src/core/SkClipStack.cpp:651: Rec* rec = (Rec*) iter.prev(); Fixed in r5149. clipEmpty ...
12 years, 3 months ago (2012-08-22 11:08:51 UTC) #6
TomH
Right now, clipDevRect() doesn't shortcut to the optimized version. Would that be too expensive to ...
12 years, 3 months ago (2012-09-05 16:52:15 UTC) #7
robertphillips
12 years, 3 months ago (2012-09-05 17:02:03 UTC) #8
I don't know where Mike is on it but he was working on
http://codereview.appspot.com/6462067/
Sign in to reply to this message.

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