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

Issue 1835283002: Simplify GrDrawBatch uploads and token uage. (Closed)

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

Description

Simplify GrDrawBatch uploads and token uage. GrVertexBatch subclasses no longer need "initDraw". Simplifies GrTestBatch BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1835283002 Committed: https://skia.googlesource.com/skia/+/342bfc25de5b0452b1551bf9db4bf45eac7718b2

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : add comments #

Total comments: 3

Patch Set 4 : comments updated #

Total comments: 12

Patch Set 5 : Address comments #

Patch Set 6 : remove extraneous 's' #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -532 lines) Patch
M gm/beziereffects.cpp View 1 2 3 5 chunks +30 lines, -79 lines 0 comments Download
M gm/convexpolyeffect.cpp View 1 2 3 6 chunks +32 lines, -52 lines 0 comments Download
M src/gpu/GrBatchAtlas.h View 1 5 chunks +9 lines, -17 lines 0 comments Download
M src/gpu/GrBatchAtlas.cpp View 1 2 8 chunks +35 lines, -50 lines 0 comments Download
M src/gpu/GrBatchFlushState.h View 1 2 3 4 6 chunks +84 lines, -74 lines 0 comments Download
M src/gpu/GrBatchFlushState.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M src/gpu/GrDefaultGeoProcFactory.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/gpu/GrDrawingManager.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrOvalRenderer.cpp View 1 2 3 10 chunks +5 lines, -15 lines 0 comments Download
M src/gpu/batches/GrAAConvexPathRenderer.cpp View 1 2 3 4 chunks +2 lines, -6 lines 0 comments Download
M src/gpu/batches/GrAADistanceFieldPathRenderer.cpp View 1 2 3 9 chunks +9 lines, -19 lines 0 comments Download
M src/gpu/batches/GrAAHairLinePathRenderer.cpp View 1 2 3 4 chunks +47 lines, -58 lines 0 comments Download
M src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp View 1 2 3 5 chunks +4 lines, -8 lines 0 comments Download
M src/gpu/batches/GrAAStrokeRectBatch.cpp View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M src/gpu/batches/GrAtlasTextBatch.h View 1 2 3 3 chunks +7 lines, -9 lines 0 comments Download
M src/gpu/batches/GrAtlasTextBatch.cpp View 1 2 3 4 chunks +13 lines, -16 lines 0 comments Download
M src/gpu/batches/GrDefaultPathRenderer.cpp View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M src/gpu/batches/GrDrawAtlasBatch.cpp View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M src/gpu/batches/GrDrawBatch.h View 1 2 3 4 chunks +32 lines, -9 lines 0 comments Download
M src/gpu/batches/GrDrawVerticesBatch.cpp View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M src/gpu/batches/GrNinePatch.cpp View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M src/gpu/batches/GrNonAAStrokeRectBatch.cpp View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M src/gpu/batches/GrPLSPathRenderer.cpp View 1 2 3 3 chunks +3 lines, -6 lines 0 comments Download
M src/gpu/batches/GrTInstanceBatch.h View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M src/gpu/batches/GrTessellatingPathRenderer.cpp View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M src/gpu/batches/GrTestBatch.h View 1 2 3 1 chunk +20 lines, -41 lines 0 comments Download
M src/gpu/batches/GrVertexBatch.h View 1 2 3 4 5 4 chunks +23 lines, -18 lines 0 comments Download
M src/gpu/batches/GrVertexBatch.cpp View 1 3 chunks +48 lines, -17 lines 0 comments Download
M src/gpu/effects/GrDashingEffect.cpp View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/text/GrBatchFontCache.h View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/PrimitiveProcessorTest.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
bsalomon
Currently a GrVertexBatch subclass's draws are structured like this: this->initDraw(gp0); target->draw(mesh); // uses gp0 .. ...
4 years, 8 months ago (2016-03-28 15:42:24 UTC) #4
egdaniel
https://codereview.chromium.org/1835283002/diff/40001/src/gpu/batches/GrDrawBatch.h File src/gpu/batches/GrDrawBatch.h (right): https://codereview.chromium.org/1835283002/diff/40001/src/gpu/batches/GrDrawBatch.h#newcode56 src/gpu/batches/GrDrawBatch.h:56: * Batches can insert uploads when preparing their draws. ...
4 years, 8 months ago (2016-03-28 20:05:20 UTC) #5
bsalomon
https://codereview.chromium.org/1835283002/diff/40001/src/gpu/batches/GrDrawBatch.h File src/gpu/batches/GrDrawBatch.h (right): https://codereview.chromium.org/1835283002/diff/40001/src/gpu/batches/GrDrawBatch.h#newcode58 src/gpu/batches/GrDrawBatch.h:58: * them between draws, which is called an "inline ...
4 years, 8 months ago (2016-03-28 20:11:03 UTC) #6
bsalomon
comments updated
4 years, 8 months ago (2016-03-30 02:25:23 UTC) #7
robertphillips
lgtm + nits https://codereview.chromium.org/1835283002/diff/60001/src/gpu/GrBatchFlushState.h File src/gpu/GrBatchFlushState.h (right): https://codereview.chromium.org/1835283002/diff/60001/src/gpu/GrBatchFlushState.h#newcode36 src/gpu/GrBatchFlushState.h:36: a an -> an ? https://codereview.chromium.org/1835283002/diff/60001/src/gpu/batches/GrVertexBatch.h ...
4 years, 8 months ago (2016-03-30 14:29:47 UTC) #8
egdaniel
https://codereview.chromium.org/1835283002/diff/60001/src/gpu/batches/GrDrawBatch.h File src/gpu/batches/GrDrawBatch.h (right): https://codereview.chromium.org/1835283002/diff/60001/src/gpu/batches/GrDrawBatch.h#newcode54 src/gpu/batches/GrDrawBatch.h:54: /** See comments before GrDrawBatch::Target definition on how deferred ...
4 years, 8 months ago (2016-03-30 15:52:33 UTC) #9
bsalomon
https://codereview.chromium.org/1835283002/diff/60001/src/gpu/GrBatchFlushState.h File src/gpu/GrBatchFlushState.h (right): https://codereview.chromium.org/1835283002/diff/60001/src/gpu/GrBatchFlushState.h#newcode36 src/gpu/GrBatchFlushState.h:36: On 2016/03/30 14:29:47, robertphillips wrote: > a an -> ...
4 years, 8 months ago (2016-03-30 16:59:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1835283002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1835283002/120001
4 years, 8 months ago (2016-04-01 12:53:20 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-01 13:06:24 UTC) #15
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/342bfc25de5b0452b1551bf9db4bf45eac7718b2

Powered by Google App Engine
This is Rietveld 408576698