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

Issue 209413006: Make it possible to draw multiple paths at once to a draw target (Closed)

Created:
6 years, 9 months ago by Kimmo Kinnunen
Modified:
6 years, 9 months ago
Reviewers:
jvanverth1, bsalomon
CC:
skia-review_googlegroups.com, Chris Dalton
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Make it possible to draw multiple paths at once to a draw target Add interface to draw multiple paths in a single "command" to a draw target. Implement this interface in GrGpuGL with NVPR "instanced" calls. The instanced calls accept list of paths and list of transformations as their parameters. The transformations are at this moment expected to be 2d affine transformations, as the functions are called only for text rendering. This will be used when drawing fonts. Later it can be maybe be used in GrInOrderDrawBuffer to aggregate many draw calls into one instanced draw call, similar to drawing rects. Committed: http://code.google.com/p/skia/source/detail?r=13930

Patch Set 1 #

Total comments: 5

Patch Set 2 : address review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -5 lines) Patch
M src/gpu/GrDrawTarget.h View 1 5 chunks +27 lines, -1 line 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 chunk +30 lines, -0 lines 0 comments Download
M src/gpu/GrGpu.h View 3 chunks +6 lines, -0 lines 0 comments Download
M src/gpu/GrGpu.cpp View 1 chunk +16 lines, -0 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 6 chunks +21 lines, -2 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 6 chunks +60 lines, -1 line 0 comments Download
M src/gpu/gl/GrGpuGL.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 1 chunk +93 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGpuGL_program.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Kimmo Kinnunen
Split the nvpr text patch into two
6 years, 9 months ago (2014-03-24 09:46:20 UTC) #1
Kimmo Kinnunen
This is of course quite wide api vs. the difference of functionality it provides. If ...
6 years, 9 months ago (2014-03-24 13:09:40 UTC) #2
bsalomon
I'm ok with separate calls for single vs. multiple. Some minor comments, mostly looking good. ...
6 years, 9 months ago (2014-03-24 13:53:24 UTC) #3
Kimmo Kinnunen
https://chromiumcodereview.appspot.com/209413006/diff/1/src/gpu/GrDrawTarget.cpp File src/gpu/GrDrawTarget.cpp (right): https://chromiumcodereview.appspot.com/209413006/diff/1/src/gpu/GrDrawTarget.cpp#newcode565 src/gpu/GrDrawTarget.cpp:565: transforms[i].mapRect(&mappedPathBounds, paths[i]->getBounds()); In practical terms, it would complicate and ...
6 years, 9 months ago (2014-03-24 13:58:50 UTC) #4
bsalomon
On 2014/03/24 13:58:50, kkinnunen wrote: > https://chromiumcodereview.appspot.com/209413006/diff/1/src/gpu/GrDrawTarget.cpp > File src/gpu/GrDrawTarget.cpp (right): > > https://chromiumcodereview.appspot.com/209413006/diff/1/src/gpu/GrDrawTarget.cpp#newcode565 > ...
6 years, 9 months ago (2014-03-24 15:40:24 UTC) #5
Kimmo Kinnunen
https://chromiumcodereview.appspot.com/209413006/diff/1/src/gpu/GrDrawTarget.h File src/gpu/GrDrawTarget.h (right): https://chromiumcodereview.appspot.com/209413006/diff/1/src/gpu/GrDrawTarget.h#newcode895 src/gpu/GrDrawTarget.h:895: const GrDeviceCoordTexture*) = 0; On 2014/03/24 13:53:24, bsalomon wrote: ...
6 years, 9 months ago (2014-03-25 11:18:24 UTC) #6
Kimmo Kinnunen
The CQ bit was checked by kkinnunen@nvidia.com
6 years, 9 months ago (2014-03-25 11:18:29 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/kkinnunen@nvidia.com/209413006/20001
6 years, 9 months ago (2014-03-25 11:18:35 UTC) #8
commit-bot: I haz the power
6 years, 9 months ago (2014-03-25 11:59:43 UTC) #9
Message was sent while issue was closed.
Change committed as 13930

Powered by Google App Engine
This is Rietveld 408576698