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

Issue 6946072: Follow up on the previous patch : (Closed)

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

Description

Follow up on the previous patch : - Moved the SkStrokeRec class in its own file - Replaced SkStroke by SkStrokeRec in Ganesh - Moved path stroking to the Ganesh level in some cases (everytime it isn't required to do it directly in SkGpuDevice). PathEffect and MaskFilter still require path stroking at the SkGpuDevice for now. - Renamed static functions in SkPath with proper names * No functionality shold have changed with this patch. This is a step towards enabling Ganesh Path Renderers to decide whether or not to stroke the path rather than always receiving the stroked path as an input argument. BUG=chromium:135111 TEST=Try path rendering tests from the gm Committed: https://code.google.com/p/skia/source/detail?r=6861

Patch Set 1 #

Total comments: 21

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+386 lines, -328 lines) Patch
M gyp/core.gypi View 2 chunks +2 lines, -0 lines 0 comments Download
M include/core/SkPath.h View 3 chunks +13 lines, -3 lines 0 comments Download
M include/core/SkPathEffect.h View 1 chunk +1 line, -78 lines 0 comments Download
A include/core/SkStrokeRec.h View 1 1 chunk +92 lines, -0 lines 0 comments Download
M include/gpu/GrContext.h View 4 chunks +5 lines, -5 lines 0 comments Download
M include/gpu/GrPathRendererChain.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkPathEffect.cpp View 1 chunk +0 lines, -98 lines 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkStroke.h View 1 chunk +0 lines, -1 line 0 comments Download
A src/core/SkStrokeRec.cpp View 1 1 chunk +106 lines, -0 lines 0 comments Download
M src/gpu/GrAAConvexPathRenderer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrAAConvexPathRenderer.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/GrAddPathRenderers_default.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 8 chunks +9 lines, -15 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 6 chunks +39 lines, -20 lines 1 comment Download
M src/gpu/GrDefaultPathRenderer.h View 1 chunk +6 lines, -6 lines 0 comments Download
M src/gpu/GrDefaultPathRenderer.cpp View 1 10 chunks +14 lines, -15 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 3 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 chunks +4 lines, -5 lines 0 comments Download
M src/gpu/GrGpu.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrGpu.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 1 3 chunks +5 lines, -3 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/gpu/GrPathRenderer.h View 8 chunks +8 lines, -8 lines 0 comments Download
M src/gpu/GrPathRendererChain.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrSWMaskHelper.h View 3 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 3 chunks +7 lines, -7 lines 0 comments Download
M src/gpu/GrSoftwarePathRenderer.h View 1 chunk +3 lines, -3 lines 0 comments Download
M src/gpu/GrSoftwarePathRenderer.cpp View 1 3 chunks +5 lines, -5 lines 0 comments Download
M src/gpu/GrStencilAndCoverPathRenderer.h View 1 chunk +4 lines, -4 lines 0 comments Download
M src/gpu/GrStencilAndCoverPathRenderer.cpp View 1 3 chunks +8 lines, -8 lines 0 comments Download
M src/gpu/GrTextContext.cpp View 1 2 chunks +3 lines, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 7 chunks +26 lines, -18 lines 1 comment Download

Messages

Total messages: 13
sugoi1
https://codereview.appspot.com/6946072/diff/1/src/core/SkPicturePlayback.cpp File src/core/SkPicturePlayback.cpp (left): https://codereview.appspot.com/6946072/diff/1/src/core/SkPicturePlayback.cpp#oldcode646 src/core/SkPicturePlayback.cpp:646: static const int kDrawComplete = SK_MaxU32; This was causing ...
11 years, 10 months ago (2012-12-17 19:14:12 UTC) #1
reed1
nits around copyright for new files (use Google) deferring all else to brian https://codereview.appspot.com/6946072/diff/1/include/core/SkStrokeRec.h File ...
11 years, 10 months ago (2012-12-17 19:18:45 UTC) #2
sugoi1
https://codereview.appspot.com/6946072/diff/1/include/core/SkStrokeRec.h File include/core/SkStrokeRec.h (right): https://codereview.appspot.com/6946072/diff/1/include/core/SkStrokeRec.h#newcode1 include/core/SkStrokeRec.h:1: /* Changed to : Copyright 2012 Google Inc. https://codereview.appspot.com/6946072/diff/1/src/core/SkStrokeRec.cpp ...
11 years, 10 months ago (2012-12-17 19:22:46 UTC) #3
bsalomon
Mostly looks good. https://codereview.appspot.com/6946072/diff/1/include/core/SkPath.h File include/core/SkPath.h (right): https://codereview.appspot.com/6946072/diff/1/include/core/SkPath.h#newcode549 include/core/SkPath.h:549: static FillType ConvertToNonInverseFillType(FillType fill) { MakeNonInverseFillType? ...
11 years, 10 months ago (2012-12-17 19:33:58 UTC) #4
sugoi1
https://codereview.appspot.com/6946072/diff/1/include/core/SkPath.h File include/core/SkPath.h (right): https://codereview.appspot.com/6946072/diff/1/include/core/SkPath.h#newcode549 include/core/SkPath.h:549: static FillType ConvertToNonInverseFillType(FillType fill) { "ConvertToNonInverseFillType" was Mike's suggestion ...
11 years, 10 months ago (2012-12-17 19:48:24 UTC) #5
bsalomon
https://codereview.appspot.com/6946072/diff/1/include/core/SkPath.h File include/core/SkPath.h (right): https://codereview.appspot.com/6946072/diff/1/include/core/SkPath.h#newcode549 include/core/SkPath.h:549: static FillType ConvertToNonInverseFillType(FillType fill) { On 2012/12/17 19:48:26, sugoi1 ...
11 years, 10 months ago (2012-12-17 19:50:37 UTC) #6
sugoi1
> Aren't you calling applyToPath() in GrContext in the current version? Yes, but the gm ...
11 years, 10 months ago (2012-12-17 20:18:33 UTC) #7
sugoi1
11 years, 10 months ago (2012-12-17 20:18:47 UTC) #8
bsalomon
Oh you're right I should have said it should check for hairline or fill (it ...
11 years, 10 months ago (2012-12-17 20:21:15 UTC) #9
sugoi1
https://codereview.appspot.com/6946072/diff/7003/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): https://codereview.appspot.com/6946072/diff/7003/src/gpu/GrContext.cpp#newcode1084 src/gpu/GrContext.cpp:1084: /*switch(stroke.getStyle()) { Oops, this was test code, it's deleted...
11 years, 10 months ago (2012-12-17 20:30:58 UTC) #10
bsalomon
https://codereview.appspot.com/6946072/diff/7003/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.appspot.com/6946072/diff/7003/src/gpu/SkGpuDevice.cpp#newcode1010 src/gpu/SkGpuDevice.cpp:1010: if (pathEffect && pathEffect->filterPath(&effectPath, *pathPtr, &stroke)) { Can't we ...
11 years, 10 months ago (2012-12-17 20:40:11 UTC) #11
sugoi1
On 2012/12/17 20:40:11, bsalomon wrote: > https://codereview.appspot.com/6946072/diff/7003/src/gpu/SkGpuDevice.cpp > File src/gpu/SkGpuDevice.cpp (right): > > https://codereview.appspot.com/6946072/diff/7003/src/gpu/SkGpuDevice.cpp#newcode1010 > ...
11 years, 10 months ago (2012-12-17 20:46:12 UTC) #12
bsalomon
11 years, 10 months ago (2012-12-17 20:48:24 UTC) #13
On 2012/12/17 20:46:12, sugoi1 wrote:
> On 2012/12/17 20:40:11, bsalomon wrote:
> > https://codereview.appspot.com/6946072/diff/7003/src/gpu/SkGpuDevice.cpp
> > File src/gpu/SkGpuDevice.cpp (right):
> > 
> >
>
https://codereview.appspot.com/6946072/diff/7003/src/gpu/SkGpuDevice.cpp#newc...
> > src/gpu/SkGpuDevice.cpp:1010: if (pathEffect &&
> > pathEffect->filterPath(&effectPath, *pathPtr, &stroke)) {
> > Can't we use tmpPath here too and get rid of effectPath?
> 
> I'm not so confident in doing that. Looking at SkPaint::getFillPath(), it does
> create a temporary for that purpose, and the filterPath() function being
> virtual, I don't think all derived versions handle have the same src and dst
> paths.

Ok lgtm
Sign in to reply to this message.

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