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

Issue 1275553002: Implement caching of stroked paths in the tessellating path renderer. (Closed)

Created:
5 years, 4 months ago by Stephen White
Modified:
5 years, 4 months ago
Reviewers:
bsalomon, mtklein_C
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Implement caching of stroked paths in the tessellating path renderer. This requires adding the stroke info to the cache key, and doing the stroking and dashing before rendering as triangles. BUG=skia:3755 Committed: https://skia.googlesource.com/skia/+/29e0d3f267a03546f236023347cdb4595ece2fd1 Committed: https://skia.googlesource.com/skia/+/b4f9d0ec6cc95ce46f9351fee5adaffcfa729e38

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add a GrStrokeInfo randomizer, and call it from the TessellatingPathBatch test #

Patch Set 3 : Add random dashing info to GrTestUtils::GetStrokeInfo #

Patch Set 4 : Alphabetize #includes #

Patch Set 5 : Fix random dash creation: always create an even number of dashes. #

Patch Set 6 : Move key computation and stroking into onDrawPath(), to fix path bounds #

Patch Set 7 : Remove now-used stroke info from TessellatingPathBatch #

Patch Set 8 : Move key computation back to generateGeometry; pass original path & stroke to batch; use IsStrokeHa… #

Patch Set 9 : 100-col fix #

Patch Set 10 : Revert to PS5, and adjust the bounds for the stroke #

Patch Set 11 : Use IsStrokeHairlineOrEquivalent() instead of stroke->isHairline() #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -17 lines) Patch
M include/gpu/GrTestUtils.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M src/gpu/GrTessellatingPathRenderer.cpp View 1 2 3 4 5 6 7 8 9 10 10 chunks +47 lines, -11 lines 0 comments Download
M src/gpu/GrTestUtils.cpp View 1 2 3 4 2 chunks +31 lines, -6 lines 2 comments Download

Messages

Total messages: 41 (16 generated)
Stephen White
Brian: PTAL. Thanks!
5 years, 4 months ago (2015-08-05 15:45:08 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1275553002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1275553002/1
5 years, 4 months ago (2015-08-05 15:50:23 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-05 16:07:09 UTC) #7
bsalomon
https://codereview.chromium.org/1275553002/diff/1/src/gpu/GrTessellatingPathRenderer.cpp File src/gpu/GrTessellatingPathRenderer.cpp (right): https://codereview.chromium.org/1275553002/diff/1/src/gpu/GrTessellatingPathRenderer.cpp#newcode1644 src/gpu/GrTessellatingPathRenderer.cpp:1644: SkPaint strokePaint; This doesn't look like it is actually ...
5 years, 4 months ago (2015-08-05 18:53:51 UTC) #8
Stephen White
https://codereview.chromium.org/1275553002/diff/1/src/gpu/GrTessellatingPathRenderer.cpp File src/gpu/GrTessellatingPathRenderer.cpp (right): https://codereview.chromium.org/1275553002/diff/1/src/gpu/GrTessellatingPathRenderer.cpp#newcode1644 src/gpu/GrTessellatingPathRenderer.cpp:1644: SkPaint strokePaint; On 2015/08/05 18:53:51, bsalomon wrote: > This ...
5 years, 4 months ago (2015-08-05 18:57:39 UTC) #9
bsalomon
On 2015/08/05 18:57:39, Stephen White wrote: > https://codereview.chromium.org/1275553002/diff/1/src/gpu/GrTessellatingPathRenderer.cpp > File src/gpu/GrTessellatingPathRenderer.cpp (right): > > https://codereview.chromium.org/1275553002/diff/1/src/gpu/GrTessellatingPathRenderer.cpp#newcode1644 ...
5 years, 4 months ago (2015-08-05 19:00:30 UTC) #10
Stephen White
On 2015/08/05 19:00:30, bsalomon wrote: > On 2015/08/05 18:57:39, Stephen White wrote: > > > ...
5 years, 4 months ago (2015-08-05 19:50:25 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1275553002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1275553002/60001
5 years, 4 months ago (2015-08-05 19:52:03 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-05 19:59:18 UTC) #15
bsalomon
lgtm
5 years, 4 months ago (2015-08-05 20:16:28 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1275553002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1275553002/60001
5 years, 4 months ago (2015-08-05 20:17:24 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/29e0d3f267a03546f236023347cdb4595ece2fd1
5 years, 4 months ago (2015-08-05 20:18:06 UTC) #19
Stephen White
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1276633002/ by senorblanco@chromium.org. ...
5 years, 4 months ago (2015-08-05 20:37:33 UTC) #20
Stephen White
PS5 contains the fix for GrTestUtils::TestStrokeInfo(): always create an even number of dashes.
5 years, 4 months ago (2015-08-05 20:55:31 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1275553002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1275553002/80001
5 years, 4 months ago (2015-08-05 20:56:59 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1275553002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1275553002/180001
5 years, 4 months ago (2015-08-06 15:32:51 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-06 15:40:44 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1275553002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1275553002/200001
5 years, 4 months ago (2015-08-06 15:43:12 UTC) #31
Stephen White
Brian: PTAL. Thanks! Note: this patch took a lot of detours, but you can diff ...
5 years, 4 months ago (2015-08-06 15:45:57 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-06 15:54:56 UTC) #34
bsalomon
On 2015/08/06 15:54:56, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
5 years, 4 months ago (2015-08-06 16:22:05 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1275553002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1275553002/200001
5 years, 4 months ago (2015-08-06 17:28:28 UTC) #37
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://skia.googlesource.com/skia/+/b4f9d0ec6cc95ce46f9351fee5adaffcfa729e38
5 years, 4 months ago (2015-08-06 17:28:58 UTC) #38
mtklein_C
https://codereview.chromium.org/1275553002/diff/200001/src/gpu/GrTestUtils.cpp File src/gpu/GrTestUtils.cpp (right): https://codereview.chromium.org/1275553002/diff/200001/src/gpu/GrTestUtils.cpp#newcode247 src/gpu/GrTestUtils.cpp:247: dashInfo.fIntervals = SkNEW_ARRAY(SkScalar, dashInfo.fCount); This you? https://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-Golo-GPU-GT610-x86_64-Debug-ASAN/builds/1049/steps/dm/logs/stdio
5 years, 4 months ago (2015-08-06 18:42:03 UTC) #40
Stephen White
5 years, 4 months ago (2015-08-06 19:22:38 UTC) #41
Message was sent while issue was closed.
https://codereview.chromium.org/1275553002/diff/200001/src/gpu/GrTestUtils.cpp
File src/gpu/GrTestUtils.cpp (right):

https://codereview.chromium.org/1275553002/diff/200001/src/gpu/GrTestUtils.cp...
src/gpu/GrTestUtils.cpp:247: dashInfo.fIntervals = SkNEW_ARRAY(SkScalar,
dashInfo.fCount);
On 2015/08/06 18:42:03, mtklein_C wrote:
> This you?
> 
>
https://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-Golo-GPU-GT...
> 

https://codereview.chromium.org/1274963003/

Powered by Google App Engine
This is Rietveld 408576698