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

Issue 6875058: As part of preliminary groundwork for a chromium fix, this changelist is deprecating GrPathFill so … (Closed)

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

Description

As part of preliminary groundwork for a chromium fix, this changelist is deprecating GrPathFill so that SkPath::FillType is used everywhere in order to remove some code duplication between Skia and Ganesh. BUG=chromium:135111 TEST=Try path rendering tests from the gm Committed: https://code.google.com/p/skia/source/detail?r=6693

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Total comments: 16

Patch Set 4 : #

Patch Set 5 : #

Total comments: 14

Patch Set 6 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -344 lines) Patch
M include/core/SkPath.h View 1 2 3 4 5 2 chunks +23 lines, -1 line 2 comments Download
M include/gpu/GrContext.h View 1 2 3 4 5 4 chunks +5 lines, -6 lines 0 comments Download
M include/gpu/GrTypes.h View 1 2 3 4 5 1 chunk +0 lines, -47 lines 0 comments Download
M src/core/SkPath.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkStroke.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrAAConvexPathRenderer.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrAAConvexPathRenderer.cpp View 1 2 3 4 5 2 chunks +5 lines, -10 lines 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.cpp View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 2 3 4 5 18 chunks +43 lines, -69 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 4 5 7 chunks +27 lines, -13 lines 0 comments Download
M src/gpu/GrDefaultPathRenderer.h View 1 2 3 4 5 1 chunk +8 lines, -8 lines 0 comments Download
M src/gpu/GrDefaultPathRenderer.cpp View 1 2 3 4 5 15 chunks +31 lines, -28 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 2 3 4 5 4 chunks +5 lines, -2 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download
M src/gpu/GrGpu.h View 1 2 3 4 5 3 chunks +6 lines, -3 lines 0 comments Download
M src/gpu/GrGpu.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 1 2 3 4 5 3 chunks +4 lines, -2 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 2 3 4 5 3 chunks +4 lines, -2 lines 0 comments Download
M src/gpu/GrPathRenderer.h View 1 2 3 4 5 7 chunks +15 lines, -15 lines 0 comments Download
M src/gpu/GrPathRendererChain.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M src/gpu/GrPathRendererChain.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrSWMaskHelper.h View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 2 3 4 5 6 chunks +16 lines, -31 lines 0 comments Download
M src/gpu/GrSoftwarePathRenderer.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M src/gpu/GrSoftwarePathRenderer.cpp View 1 2 3 4 5 4 chunks +6 lines, -6 lines 0 comments Download
M src/gpu/GrStencilAndCoverPathRenderer.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M src/gpu/GrStencilAndCoverPathRenderer.cpp View 1 2 3 4 5 3 chunks +12 lines, -11 lines 0 comments Download
M src/gpu/GrTextContext.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 7 chunks +12 lines, -52 lines 0 comments Download
M src/gpu/gl/GrGpuGL.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 1 2 3 4 5 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 22
sugoi
12 years ago (2012-12-04 20:06:24 UTC) #1
sugoi
Note : Ignore "gyp/effects.gypi", it shouldn't be here. I will remove it from the changelist.
12 years ago (2012-12-04 20:16:49 UTC) #2
bsalomon
Looks like the right direction to me (more red than green!). My most significant suggestion ...
12 years ago (2012-12-04 20:30:53 UTC) #3
reed1
I don't think hairline/stroke -vs- fill should be in the path geometry, but rather in ...
12 years ago (2012-12-04 22:14:13 UTC) #4
reed1
https://codereview.appspot.com/6875058/diff/4001/include/core/SkPath.h File include/core/SkPath.h (right): https://codereview.appspot.com/6875058/diff/4001/include/core/SkPath.h#newcode75 include/core/SkPath.h:75: */ In addition to not wanting hairline here, I ...
12 years ago (2012-12-04 22:16:15 UTC) #5
bsalomon
https://codereview.appspot.com/6875058/diff/4001/include/core/SkPath.h File include/core/SkPath.h (right): https://codereview.appspot.com/6875058/diff/4001/include/core/SkPath.h#newcode75 include/core/SkPath.h:75: */ On 2012/12/04 22:16:15, reed1 wrote: > In addition ...
12 years ago (2012-12-04 22:17:55 UTC) #6
sugoi
https://codereview.appspot.com/6875058/diff/1/include/core/SkPath.h File include/core/SkPath.h (right): https://codereview.appspot.com/6875058/diff/1/include/core/SkPath.h#newcode533 include/core/SkPath.h:533: static bool IsFillInverted(FillType fill) { Not unless I make ...
12 years ago (2012-12-05 21:03:46 UTC) #7
bsalomon
Using SkStroke feels right, but I think we need to distinguish between non-hairline stroke and ...
12 years ago (2012-12-05 21:19:21 UTC) #8
sugoi
https://codereview.appspot.com/6875058/diff/9001/src/gpu/GrClipMaskManager.cpp File src/gpu/GrClipMaskManager.cpp (right): https://codereview.appspot.com/6875058/diff/9001/src/gpu/GrClipMaskManager.cpp#newcode719 src/gpu/GrClipMaskManager.cpp:719: GrSWMaskHelper::DrawPathMaskToTexture(context, path, hmmm... I was passing that parameter because ...
12 years ago (2012-12-05 22:04:04 UTC) #9
bsalomon
https://codereview.appspot.com/6875058/diff/9001/src/gpu/GrClipMaskManager.cpp File src/gpu/GrClipMaskManager.cpp (right): https://codereview.appspot.com/6875058/diff/9001/src/gpu/GrClipMaskManager.cpp#newcode719 src/gpu/GrClipMaskManager.cpp:719: GrSWMaskHelper::DrawPathMaskToTexture(context, path, On 2012/12/05 22:04:04, sugoi wrote: > hmmm... ...
12 years ago (2012-12-05 22:10:33 UTC) #10
sugoi
Ok, I think I made most of the changes that were requested. Please tell me ...
12 years ago (2012-12-06 16:19:31 UTC) #11
sugoi
12 years ago (2012-12-06 16:19:46 UTC) #12
bsalomon
I definitely agree that moving the stroking decision to Gr should be a separate CL. ...
12 years ago (2012-12-06 16:42:55 UTC) #13
bsalomon
https://codereview.appspot.com/6875058/diff/23001/src/gpu/GrAAConvexPathRenderer.cpp File src/gpu/GrAAConvexPathRenderer.cpp (right): https://codereview.appspot.com/6875058/diff/23001/src/gpu/GrAAConvexPathRenderer.cpp#newcode436 src/gpu/GrAAConvexPathRenderer.cpp:436: (0 != stroke.getWidthIfStroked()) && !path.isInverseFillType() && path.isConvex()); On 2012/12/06 ...
12 years ago (2012-12-06 16:48:59 UTC) #14
sugoi
12 years ago (2012-12-06 19:44:11 UTC) #15
bsalomon
On 2012/12/06 19:44:11, sugoi wrote: LGTM. Thanks for putting up with multiple rounds of nit ...
12 years ago (2012-12-06 19:51:42 UTC) #16
sugoi
No problem. I would've been disappointed if everyone thought I got it right the first ...
12 years ago (2012-12-06 19:54:04 UTC) #17
sugoi
I'll just wait for Mike to say it's also ok with him before I submit ...
12 years ago (2012-12-06 20:04:31 UTC) #18
bsalomon
On 2012/12/06 20:04:31, sugoi wrote: > I'll just wait for Mike to say it's also ...
12 years ago (2012-12-06 20:07:51 UTC) #19
sugoi
All right :) I'll try to remember to come to work with a fully armored ...
12 years ago (2012-12-06 20:10:20 UTC) #20
reed1
flight delayed :) https://codereview.appspot.com/6875058/diff/17006/include/core/SkPath.h File include/core/SkPath.h (right): https://codereview.appspot.com/6875058/diff/17006/include/core/SkPath.h#newcode526 include/core/SkPath.h:526: */ The method is named isInverseFillType, ...
12 years ago (2012-12-06 21:07:26 UTC) #21
sugoi
12 years ago (2012-12-06 21:20:31 UTC) #22
All right, thanks. The patch is already committed, but I have more work to do in
this area, so I'll make sure to follow-up on these comments.
Sign in to reply to this message.

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