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

Issue 7206044: add optional cull-rect to patheffects, so they can do less work if their results (Closed)

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

Description

add optional cull-rect to patheffects, so they can do less work if their results lie outside of the current clip-bounds (the cull rect). Committed: https://code.google.com/p/skia/source/detail?r=7378

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -53 lines) Patch
M bench/DashBench.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M include/core/SkDraw.h View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M include/core/SkPaint.h View 1 2 3 4 1 chunk +14 lines, -10 lines 0 comments Download
M include/core/SkPathEffect.h View 1 2 3 4 4 chunks +5 lines, -4 lines 0 comments Download
M include/effects/Sk1DPathEffect.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M include/effects/Sk2DPathEffect.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M include/effects/SkCornerPathEffect.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M include/effects/SkDashPathEffect.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M include/effects/SkDiscretePathEffect.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M samplecode/ClockFaceView.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkDraw.cpp View 1 2 3 4 4 chunks +28 lines, -2 lines 0 comments Download
M src/core/SkPaint.cpp View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M src/core/SkPathEffect.cpp View 1 2 3 4 3 chunks +8 lines, -6 lines 0 comments Download
M src/core/SkScalerContext.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/effects/Sk1DPathEffect.cpp View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M src/effects/Sk2DPathEffect.cpp View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M src/effects/SkCornerPathEffect.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkDashPathEffect.cpp View 1 2 3 4 4 chunks +86 lines, -6 lines 0 comments Download
M src/effects/SkDiscretePathEffect.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M tests/DrawPathTest.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8
reed1
haven't used the cullrect yet, just plumbing it in
11 years, 10 months ago (2013-01-23 15:40:59 UTC) #1
robertphillips
LGTM
11 years, 10 months ago (2013-01-23 15:57:21 UTC) #2
reed1
11 years, 10 months ago (2013-01-23 22:11:08 UTC) #3
bsalomon
On 2013/01/23 22:11:08, reed1 wrote: lgtm
11 years, 10 months ago (2013-01-23 22:21:15 UTC) #4
reed1
refactored to perform the cull before we check for a (special) line. before running bench ...
11 years, 10 months ago (2013-01-24 19:01:25 UTC) #5
reed1
On 2013/01/24 19:01:25, reed1 wrote: > refactored to perform the cull before we check for ...
11 years, 10 months ago (2013-01-24 19:54:03 UTC) #6
robertphillips
LGTM + nits/suggestions https://codereview.appspot.com/7206044/diff/3002/src/effects/SkDashPathEffect.cpp File src/effects/SkDashPathEffect.cpp (right): https://codereview.appspot.com/7206044/diff/3002/src/effects/SkDashPathEffect.cpp#newcode90 src/effects/SkDashPathEffect.cpp:90: outset_for_stroke? https://codereview.appspot.com/7206044/diff/3002/src/effects/SkDashPathEffect.cpp#newcode137 src/effects/SkDashPathEffect.cpp:137: // remove excess ...
11 years, 10 months ago (2013-01-24 20:03:54 UTC) #7
reed1
11 years, 10 months ago (2013-01-24 20:41:11 UTC) #8
https://codereview.appspot.com/7206044/diff/3002/src/effects/SkDashPathEffect...
File src/effects/SkDashPathEffect.cpp (right):

https://codereview.appspot.com/7206044/diff/3002/src/effects/SkDashPathEffect...
src/effects/SkDashPathEffect.cpp:90: 
On 2013/01/24 20:03:54, robertphillips wrote:
> outset_for_stroke?

Done.

https://codereview.appspot.com/7206044/diff/3002/src/effects/SkDashPathEffect...
src/effects/SkDashPathEffect.cpp:137: 
On 2013/01/24 20:03:54, robertphillips wrote:
> // remove excess line outside of the cull rect in a manner that will preserve
> the phase behavior?

Done.
Sign in to reply to this message.

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