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

Issue 1776003002: GrTessellator: abstract vertex allocation into caller (Closed)

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

Description

GrTessellator: abstract vertex allocation into caller. This abstracts all vertex allocation out of GrTessellator via a VertexBuffer interface. This removes all GPU-related calls from GrTessellator. It also factors vertex drawing into GrTessellatingPathRenderer::drawVertices(), and makes tessellate() (now draw() also responsible for drawing. This means the cache hit case is clearer as an early-out, and storing into cache is done in draw() as well. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1776003002 Committed: https://skia.googlesource.com/skia/+/6599efffeef3168dfc68dca99c30454c5c23b859

Patch Set 1 #

Patch Set 2 : Remove #includes, tweak whitespace #

Patch Set 3 : Refactor drawing, cache check #

Patch Set 4 : Cleanup #

Patch Set 5 : Fix Mac build #

Patch Set 6 : VertexAllocator -> VertexBuffer, fix #includes, namespace #

Total comments: 2

Patch Set 7 : VertexBuffer -> VertexAllocator #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -80 lines) Patch
M src/gpu/GrTessellator.h View 1 2 3 4 5 6 3 chunks +12 lines, -5 lines 0 comments Download
M src/gpu/GrTessellator.cpp View 1 2 3 4 5 6 4 chunks +7 lines, -30 lines 0 comments Download
M src/gpu/batches/GrTessellatingPathRenderer.cpp View 1 2 3 4 5 6 4 chunks +84 lines, -45 lines 0 comments Download

Messages

Total messages: 31 (16 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/1776003002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776003002/60001
4 years, 9 months ago (2016-03-10 00:13:30 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Mac-Clang-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac-Clang-x86_64-Release-Trybot/builds/1079)
4 years, 9 months ago (2016-03-10 00:14:59 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776003002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776003002/80001
4 years, 9 months ago (2016-03-10 00:19:29 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-10 00:31:27 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776003002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776003002/100001
4 years, 9 months ago (2016-03-10 15:07:55 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-10 15:18:05 UTC) #16
Stephen White
Brian: PTAL. Thanks!
4 years, 9 months ago (2016-03-10 15:29:01 UTC) #17
bsalomon
Seems like a nice direction to pull the vertex buffer code out of the tessellator. ...
4 years, 9 months ago (2016-03-10 15:46:24 UTC) #19
Stephen White
On 2016/03/10 15:46:24, bsalomon wrote: > Seems like a nice direction to pull the vertex ...
4 years, 9 months ago (2016-03-10 15:48:56 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776003002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776003002/140001
4 years, 9 months ago (2016-03-10 15:58:02 UTC) #22
Stephen White
https://codereview.chromium.org/1776003002/diff/100001/src/gpu/GrTessellator.h File src/gpu/GrTessellator.h (right): https://codereview.chromium.org/1776003002/diff/100001/src/gpu/GrTessellator.h#newcode24 src/gpu/GrTessellator.h:24: class VertexBuffer { On 2016/03/10 15:46:24, bsalomon wrote: > ...
4 years, 9 months ago (2016-03-10 15:59:29 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-10 16:15:19 UTC) #26
bsalomon
On 2016/03/10 16:15:19, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 9 months ago (2016-03-10 16:21:29 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776003002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776003002/140001
4 years, 9 months ago (2016-03-10 16:37:30 UTC) #29
commit-bot: I haz the power
4 years, 9 months ago (2016-03-10 16:38:48 UTC) #31
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as
https://skia.googlesource.com/skia/+/6599efffeef3168dfc68dca99c30454c5c23b859

Powered by Google App Engine
This is Rietveld 408576698