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

Issue 1908433002: Batch multiple single NVPR draw paths to instanced draws

Created:
4 years, 8 months ago by Kimmo Kinnunen
Modified:
4 years, 7 months ago
Reviewers:
bsalomon, joshua.litt
CC:
reviews_skia.org, Chris Dalton, Sami Väisänen
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Batch multiple single NVPR draw paths to instanced draws Batch multiple single NVPR draw paths to instanced draws. A draw path batch can be combined to other batch if the batches do not overlap and have same draw characteristics. Join the batches in linked list and flatten the list to a path list during draw time. Replace GrPathRendering::drawPath with GrPathRendering::drawPaths. Perf changes ARM, Shield TV device, Tegra X1 GPU: desk_chalkboard.skp_1 21.5ms -> 17.8ms 0.83x desk_mapsvg.skp_1 7.49ms -> 6.18ms 0.82x Others results are more volatile. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1908433002 Committed: https://skia.googlesource.com/skia/+/3c33c389e9f8d14d86756ea1ddeba2097f31ad22

Patch Set 1 #

Patch Set 2 : no size_t #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -58 lines) Patch
M src/gpu/GrPath.h View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M src/gpu/GrPathRendering.h View 3 chunks +17 lines, -15 lines 0 comments Download
M src/gpu/batches/GrBatch.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/batches/GrDrawPathBatch.h View 1 2 3 1 chunk +11 lines, -4 lines 0 comments Download
M src/gpu/batches/GrDrawPathBatch.cpp View 1 2 3 4 1 chunk +71 lines, -5 lines 0 comments Download
M src/gpu/gl/GrGLPath.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/gl/GrGLPath.cpp View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLPathRendering.h View 2 chunks +5 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGLPathRendering.cpp View 1 2 3 4 2 chunks +56 lines, -29 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908433002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908433002/1
4 years, 8 months ago (2016-04-20 09:26:39 UTC) #3
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 8 months ago (2016-04-20 09:26:40 UTC) #4
Kimmo Kinnunen
4 years, 8 months ago (2016-04-20 09:27:16 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/8029)
4 years, 8 months ago (2016-04-20 09:29:29 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908433002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908433002/20001
4 years, 8 months ago (2016-04-20 10:28:48 UTC) #10
Kimmo Kinnunen
4 years, 8 months ago (2016-04-22 07:54:10 UTC) #12
bsalomon
lgtm, minor stuff inline https://chromiumcodereview.appspot.com/1908433002/diff/60001/src/gpu/GrPath.h File src/gpu/GrPath.h (right): https://chromiumcodereview.appspot.com/1908433002/diff/60001/src/gpu/GrPath.h#newcode40 src/gpu/GrPath.h:40: /** Returns true if a ...
4 years, 8 months ago (2016-04-22 13:20:39 UTC) #13
Kimmo Kinnunen
https://chromiumcodereview.appspot.com/1908433002/diff/60001/src/gpu/GrPath.h File src/gpu/GrPath.h (right): https://chromiumcodereview.appspot.com/1908433002/diff/60001/src/gpu/GrPath.h#newcode40 src/gpu/GrPath.h:40: /** Returns true if a path can be drawn ...
4 years, 8 months ago (2016-04-25 08:36:00 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908433002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908433002/80001
4 years, 8 months ago (2016-04-25 09:02:33 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://skia.googlesource.com/skia/+/3c33c389e9f8d14d86756ea1ddeba2097f31ad22
4 years, 8 months ago (2016-04-25 09:16:14 UTC) #19
stephana
4 years, 8 months ago (2016-04-25 14:01:06 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/1919843002/ by stephana@google.com.

The reason for reverting is: This causes what looks like significantly wrong
results. Here is an example:

https://gold.skia.org/diff?test=stroke-fill&left=cb47dc2cabbad7d146aedaac199e...

.

Powered by Google App Engine
This is Rietveld 408576698