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

Issue 14328009: Vertex Attrib configurations now handled as pointers vs. SkSTArrays (Closed)

Created:
7 years, 8 months ago by robertphillips
Modified:
7 years, 8 months ago
Reviewers:
jvanverth1, bsalomon
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Although this is a less flexible way to set up the vertex attribs I believe we should use it due to the performance improvement. BEFORE w/ geometry-based AA rect drawing: drawpointsdash_5_5_aa GPU: cmsecs = 24.18 gmsecs = 21.15 NULLGPU: cmsecs = 15.29 drawpointsdash_3_1_aa GPU: cmsecs = 34.48 gmsecs = 31.55 NULLGPU: cmsecs = 23.56 drawpointsdash_1_1_aa GPU: cmsecs = 75.66 gmsecs = 72.86 NULLGPU: cmsecs = 62.40 aarects GPU: cmsecs = 41.18 gmsecs = 37.85 NULLGPU: cmsecs = 34.48 AFTER w/ geometry-based AA rect rendering: drawpointsdash_5_5_aa GPU: cmsecs = 22.00 gmsecs = 19.48 NULLGPU: cmsecs = 14.51 drawpointsdash_3_1_aa GPU: cmsecs = 31.98 gmsecs = 29.20 NULLGPU: cmsecs = 22.46 drawpointsdash_1_1_aa GPU: cmsecs = 69.42 gmsecs = 67.76 NULLGPU: cmsecs = 58.50 aarects GPU: cmsecs = 38.38 gmsecs = 35.25 NULLGPU: cmsecs = 32.45 --------------------------------------------------------- BEFORE w/ shader-based rect rendering: drawpointsdash_5_5_aa GPU: cmsecs = 27.30 gmsecs = 24.61 NULLGPU: cmsecs = 18.25 drawpointsdash_3_1_aa GPU: cmsecs = 40.87 gmsecs = 38.79 NULLGPU: cmsecs = 28.70 drawpointsdash_1_1_aa GPU: cmsecs = 94.54 gmsecs = 93.06 NULLGPU: cmsecs = 77.06 aarects GPU: cmsecs = 55.07 gmsecs = 52.35 NULLGPU: cmsecs = 46.02 AFTER w/ shader-based rect rendering: drawpointsdash_5_5_aa GPU: cmsecs = 25.43 gmsecs = 22.67 NULLGPU: cmsecs = 17.00 drawpointsdash_3_1_aa GPU: cmsecs = 38.22 gmsecs = 35.65 NULLGPU: cmsecs = 26.21 drawpointsdash_1_1_aa GPU: cmsecs = 85.33 gmsecs = 83.10 NULLGPU: cmsecs = 70.51 aarects GPU: cmsecs = 44.93 gmsecs = 43.80 NULLGPU: cmsecs = 39.00

Patch Set 1 #

Patch Set 2 : Now with templates #

Patch Set 3 : Fixed minor stuff #

Patch Set 4 : Removed tabs #

Total comments: 2

Patch Set 5 : Added "extern const" & removed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -167 lines) Patch
M src/gpu/GrAAConvexPathRenderer.cpp View 1 2 3 4 2 chunks +11 lines, -6 lines 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.cpp View 1 2 3 4 3 chunks +11 lines, -6 lines 0 comments Download
M src/gpu/GrAARectRenderer.cpp View 1 2 3 4 5 chunks +28 lines, -25 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 4 4 chunks +50 lines, -33 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 2 3 4 5 chunks +38 lines, -25 lines 0 comments Download
M src/gpu/GrDrawState.cpp View 1 2 3 4 3 chunks +11 lines, -6 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 4 2 chunks +21 lines, -13 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 2 3 4 3 chunks +51 lines, -32 lines 0 comments Download
M src/gpu/GrOvalRenderer.cpp View 1 2 3 4 4 chunks +23 lines, -13 lines 0 comments Download
M src/gpu/GrTextContext.cpp View 1 2 3 4 3 chunks +12 lines, -8 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
robertphillips
7 years, 8 months ago (2013-04-17 18:52:26 UTC) #1
bsalomon
On 2013/04/17 18:52:26, robertphillips wrote: This means the vertex attribs always have to a ptr ...
7 years, 8 months ago (2013-04-17 19:04:34 UTC) #2
robertphillips
If you value your sanity - yes. Basically the caller has to guarantee that the ...
7 years, 8 months ago (2013-04-17 19:13:15 UTC) #3
robertphillips
PTAL - I have templatized setVertexAttribs on GrDrawState
7 years, 8 months ago (2013-04-19 16:17:26 UTC) #4
bsalomon
Is it possible to declare the arrays const? https://codereview.chromium.org/14328009/diff/5001/src/gpu/GrDrawState.h File src/gpu/GrDrawState.h (right): https://codereview.chromium.org/14328009/diff/5001/src/gpu/GrDrawState.h#newcode124 src/gpu/GrDrawState.h:124: * ...
7 years, 8 months ago (2013-04-19 18:25:13 UTC) #5
robertphillips
Nope - that made me sad too. Here is the error message I get (on ...
7 years, 8 months ago (2013-04-19 19:04:47 UTC) #6
bsalomon
lgtm w/ extern const
7 years, 8 months ago (2013-04-19 19:10:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/14328009/5003
7 years, 8 months ago (2013-04-20 11:02:56 UTC) #8
robertphillips
7 years, 8 months ago (2013-04-20 12:26:40 UTC) #9
Message was sent while issue was closed.
committed ar r8787

Powered by Google App Engine
This is Rietveld 408576698