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

Issue 1116123003: Improve caching of dashed paths in GrStencilAndCoverPathRenderer (Closed)

Created:
5 years, 7 months ago by Kimmo Kinnunen
Modified:
5 years, 7 months ago
Reviewers:
egdaniel
CC:
reviews_skia.org, Chris Dalton
Base URL:
https://skia.googlesource.com/skia.git@dashing-nvpr-01
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Improve caching of dashed paths in GrStencilAndCoverPathRenderer Improve caching of dashed paths in GrStencilAndCoverPathRenderer. Look up the (NVPR specific) GrGLPath based on GrStrokeInfo and the original path. Use unique keys for all GrPaths. Dash the path with Skia dash stroker and use that path geometry for NVPR path. NVPR internal dashing stroke is not used, because the dashing implementation of NVPR does not match Skia implementation. Committed: https://skia.googlesource.com/skia/+/50b58e6fbcc50785ceffacb2c51b22c6e67a7ab7

Patch Set 1 #

Patch Set 2 : . #

Total comments: 6

Patch Set 3 : address review comments #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 11

Patch Set 7 : address review comments #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -170 lines) Patch
M src/gpu/GrPath.h View 1 2 3 4 5 2 chunks +19 lines, -15 lines 0 comments Download
M src/gpu/GrPath.cpp View 1 2 3 4 5 6 7 1 chunk +9 lines, -44 lines 0 comments Download
M src/gpu/GrPathRange.h View 1 2 3 4 4 chunks +10 lines, -10 lines 0 comments Download
M src/gpu/GrPathRange.cpp View 1 chunk +4 lines, -8 lines 0 comments Download
M src/gpu/GrPathRendering.h View 3 chunks +7 lines, -6 lines 0 comments Download
M src/gpu/GrPathRendering.cpp View 1 2 3 4 2 chunks +13 lines, -6 lines 0 comments Download
M src/gpu/GrStencilAndCoverPathRenderer.cpp View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/GrStencilAndCoverTextContext.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrStencilAndCoverTextContext.cpp View 1 2 3 4 5 6 5 chunks +25 lines, -22 lines 0 comments Download
M src/gpu/GrStrokeInfo.h View 1 2 3 4 5 6 3 chunks +41 lines, -1 line 0 comments Download
M src/gpu/GrStrokeInfo.cpp View 1 2 3 4 2 chunks +53 lines, -1 line 0 comments Download
M src/gpu/gl/GrGLPath.h View 2 chunks +6 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLPath.cpp View 1 2 3 4 2 chunks +24 lines, -6 lines 0 comments Download
M src/gpu/gl/GrGLPathRange.h View 4 chunks +10 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLPathRange.cpp View 1 2 3 4 3 chunks +45 lines, -6 lines 0 comments Download
M src/gpu/gl/GrGLPathRendering.h View 1 chunk +3 lines, -3 lines 0 comments Download
M src/gpu/gl/GrGLPathRendering.cpp View 3 chunks +27 lines, -32 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Kimmo Kinnunen
This would be ready for review.
5 years, 7 months ago (2015-05-04 11:49:58 UTC) #2
egdaniel
https://codereview.chromium.org/1116123003/diff/20001/src/gpu/GrPath.cpp File src/gpu/GrPath.cpp (right): https://codereview.chromium.org/1116123003/diff/20001/src/gpu/GrPath.cpp#newcode56 src/gpu/GrPath.cpp:56: key ^= get_top_n_float_bits<32>(intervals[i]); So this doesn't seem like it ...
5 years, 7 months ago (2015-05-05 19:48:44 UTC) #3
Kimmo Kinnunen
https://codereview.chromium.org/1116123003/diff/20001/src/gpu/GrPath.cpp File src/gpu/GrPath.cpp (right): https://codereview.chromium.org/1116123003/diff/20001/src/gpu/GrPath.cpp#newcode56 src/gpu/GrPath.cpp:56: key ^= get_top_n_float_bits<32>(intervals[i]); On 2015/05/05 19:48:44, egdaniel wrote: > ...
5 years, 7 months ago (2015-05-06 08:30:26 UTC) #4
egdaniel
https://codereview.chromium.org/1116123003/diff/100001/src/gpu/GrPath.cpp File src/gpu/GrPath.cpp (right): https://codereview.chromium.org/1116123003/diff/100001/src/gpu/GrPath.cpp#newcode16 src/gpu/GrPath.cpp:16: stroke.asUniqueKeyFragment(&builder[2]); We should probably Assert here the computeUniqueKeyFragmentData32Cnt is ...
5 years, 7 months ago (2015-05-15 15:28:53 UTC) #5
Kimmo Kinnunen
Thanks! https://codereview.chromium.org/1116123003/diff/100001/src/gpu/GrPath.cpp File src/gpu/GrPath.cpp (right): https://codereview.chromium.org/1116123003/diff/100001/src/gpu/GrPath.cpp#newcode16 src/gpu/GrPath.cpp:16: stroke.asUniqueKeyFragment(&builder[2]); On 2015/05/15 15:28:53, egdaniel wrote: > We ...
5 years, 7 months ago (2015-05-18 06:48:40 UTC) #6
egdaniel
lgtm https://codereview.chromium.org/1116123003/diff/100001/src/gpu/GrPath.cpp File src/gpu/GrPath.cpp (right): https://codereview.chromium.org/1116123003/diff/100001/src/gpu/GrPath.cpp#newcode16 src/gpu/GrPath.cpp:16: stroke.asUniqueKeyFragment(&builder[2]); On 2015/05/18 06:48:40, Kimmo Kinnunen wrote: > ...
5 years, 7 months ago (2015-05-18 13:43:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1116123003/140001
5 years, 7 months ago (2015-05-19 05:50:55 UTC) #9
commit-bot: I haz the power
5 years, 7 months ago (2015-05-19 06:02:13 UTC) #10
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://skia.googlesource.com/skia/+/50b58e6fbcc50785ceffacb2c51b22c6e67a7ab7

Powered by Google App Engine
This is Rietveld 408576698