Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Issue 23440049: Implement stroking a path with nv_path_rendering (Closed)

Created:
7 years, 3 months ago by Kimmo Kinnunen
Modified:
7 years, 2 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Implement stroking a path with nv_path_rendering Initialize the path stroke properties in the GrGLPath constructor. Use StencilStrokePath and CoverStrokePath to stroke the path. The order of the GL calls is: 1. StencilFill, if needed 2. StencilStroke, if needed 2a. CoverStroke, if stroke was applied 2b. CoverFill, if stroke was not applied The reason for not pairing StencilFill + CoverFill, StencilStroke + CoverStroke is that Skia API does not allow separate fill and stroke color within one call. Covering the stroke bounding box should also cover the fill bounding box. Causes different rendering in gm/dashcubics due to different rendering algorithm. (?) (TODO: this should be resolved somehow.) Committed: http://code.google.com/p/skia/source/detail?r=11672

Patch Set 1 #

Total comments: 4

Patch Set 2 : addressing review comments #

Patch Set 3 : rebase #

Patch Set 4 : addressing review comments #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -76 lines) Patch
M src/gpu/GrDrawTarget.h View 1 2 3 4 3 chunks +10 lines, -9 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M src/gpu/GrGpu.h View 1 2 3 5 chunks +6 lines, -8 lines 0 comments Download
M src/gpu/GrGpu.cpp View 1 2 3 4 3 chunks +7 lines, -6 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 1 2 3 4 7 chunks +10 lines, -11 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 2 3 4 7 chunks +15 lines, -18 lines 0 comments Download
M src/gpu/GrPath.h View 1 1 chunk +8 lines, -1 line 0 comments Download
M src/gpu/GrStencilAndCoverPathRenderer.cpp View 1 2 3 4 chunks +5 lines, -5 lines 0 comments Download
M src/gpu/gl/GrGLPath.h View 2 chunks +2 lines, -1 line 0 comments Download
M src/gpu/gl/GrGLPath.cpp View 1 2 5 chunks +45 lines, -3 lines 0 comments Download
M src/gpu/gl/GrGpuGL.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 1 2 3 4 4 chunks +17 lines, -5 lines 0 comments Download
M src/gpu/gl/GrGpuGL_program.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Kimmo Kinnunen
Initial version up for early comments (depends on the patches not in yet).
7 years, 3 months ago (2013-09-19 07:51:28 UTC) #1
bsalomon
Hi Kimmo, this seems fairly straight forward to me. I have some minor issues noted ...
7 years, 3 months ago (2013-09-19 18:14:48 UTC) #2
Kimmo Kinnunen
Thanks. New version uploaded. https://chromiumcodereview.appspot.com/23440049/diff/1/src/gpu/gl/GrGLPath.cpp File src/gpu/gl/GrGLPath.cpp (right): https://chromiumcodereview.appspot.com/23440049/diff/1/src/gpu/gl/GrGLPath.cpp#newcode59 src/gpu/gl/GrGLPath.cpp:59: inline GrGLenum sk_join_to_gr_gl_join(const SkPaint::Join& join) ...
7 years, 2 months ago (2013-10-08 12:15:36 UTC) #3
bsalomon
lgtm, is this dependent upon https://chromiumcodereview.appspot.com/22686002/ landing first?
7 years, 2 months ago (2013-10-08 14:09:34 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/kkinnunen@nvidia.com/23440049/35001
7 years, 2 months ago (2013-10-09 15:04:20 UTC) #5
commit-bot: I haz the power
7 years, 2 months ago (2013-10-09 15:14:22 UTC) #6
Message was sent while issue was closed.
Change committed as 11672

Powered by Google App Engine
This is Rietveld 408576698