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

Issue 23537028: Enable vertexless shading when path rendering is supported (Closed)

Created:
7 years, 3 months ago by Chris Dalton
Modified:
7 years, 2 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Enable vertexless shading when path rendering is supported Updates Skia GPU to use fragment-only shader programs when path rendering is supported. This should include every case where path rendering is actually used, and reduce shader state changes when it's not. Also adds code to configure the fixed function pipeline.

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -63 lines) Patch
M src/gpu/GrOvalRenderer.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLEffectMatrix.h View 2 chunks +5 lines, -1 line 0 comments Download
M src/gpu/gl/GrGLEffectMatrix.cpp View 1 5 chunks +27 lines, -8 lines 0 comments Download
M src/gpu/gl/GrGLProgram.h View 2 chunks +5 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 1 2 4 chunks +12 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.h View 2 chunks +8 lines, -1 line 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.cpp View 2 chunks +29 lines, -3 lines 1 comment Download
M src/gpu/gl/GrGLUniformManager.h View 1 chunk +7 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLUniformManager.cpp View 1 chunk +12 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGpuGL.h View 3 chunks +15 lines, -4 lines 1 comment Download
M src/gpu/gl/GrGpuGL.cpp View 3 chunks +119 lines, -0 lines 6 comments Download
M src/gpu/gl/GrGpuGL_program.cpp View 1 3 chunks +39 lines, -42 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Chris Dalton
7 years, 3 months ago (2013-09-09 20:25:26 UTC) #1
Mark Kilgard
Looks fine Comments mainly apply to further refactoring. It really would be nice to not ...
7 years, 3 months ago (2013-09-10 02:13:48 UTC) #2
bsalomon
Mostly looks good. I'd like to request adding some more documentation to requiresVertexShader() and emitCode() ...
7 years, 3 months ago (2013-09-10 13:51:06 UTC) #3
Kimmo Kinnunen
7 years, 3 months ago (2013-09-17 09:42:40 UTC) #4
Just a heads-up, if the new version will be based on this one:
The coefficient array might be too small. 
Bug should manifest itself in Debug-mode gm run, spamming gl errors.

https://chromiumcodereview.appspot.com/23537028/diff/4001/src/gpu/gl/GrGpuGL.h
File src/gpu/gl/GrGpuGL.h (right):

https://chromiumcodereview.appspot.com/23537028/diff/4001/src/gpu/gl/GrGpuGL....
src/gpu/gl/GrGpuGL.h:441: GrGLfloat fCoefficients[6];
I think this should be 9 floats long.

Powered by Google App Engine
This is Rietveld 408576698