Cleanup of shader building system
authorjoshualitt <joshualitt@chromium.org>
Tue, 7 Oct 2014 23:43:25 +0000 (16:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Oct 2014 23:43:25 +0000 (16:43 -0700)
commit47bb38283072dc87dc93220cd2f370ca109972ff
tree973cb20bb7c4cb4f865b4977b7b218829a7bf1ab
parente6efd39a33a9efa5e20c3289384c0e08ef8c9287
Cleanup of shader building system

this is a huge refactor and cleanup of the gl shader building system in
Skia.  The entire shader building pipeline is now part of
GrGLProgramCreator, which takes a gp, and some fps, and creates a
program.  I added some subclasses of GrGLProgram to handle the
eccentricities of Nvpr/Nvpres.  Outside of the builders folder
and GrGLPrograms, this change is basically just a rename

solo gp

BUG=skia:

Committed: https://skia.googlesource.com/skia/+/fe1233c3f12f81bb675718516bbb32f72af726ec

Review URL: https://codereview.chromium.org/611653002
45 files changed:
gyp/gpu.gypi
include/gpu/GrPaint.h
include/gpu/GrProcessorStage.h
include/gpu/GrTBackendProcessorFactory.h
src/gpu/GrAAConvexPathRenderer.cpp
src/gpu/GrAARectRenderer.cpp
src/gpu/GrDrawState.cpp
src/gpu/GrDrawTarget.cpp
src/gpu/GrOptDrawState.cpp
src/gpu/GrOvalRenderer.cpp
src/gpu/effects/GrBezierEffect.cpp
src/gpu/effects/GrCustomCoordsTextureEffect.cpp
src/gpu/effects/GrDashingEffect.cpp
src/gpu/effects/GrDistanceFieldTextureEffect.cpp
src/gpu/gl/GrGLGeometryProcessor.h
src/gpu/gl/GrGLProcessor.h
src/gpu/gl/GrGLProgram.cpp
src/gpu/gl/GrGLProgram.h
src/gpu/gl/GrGLProgramDataManager.cpp
src/gpu/gl/GrGLProgramDataManager.h
src/gpu/gl/GrGLProgramDesc.cpp
src/gpu/gl/GrGLProgramDesc.h
src/gpu/gl/GrGLProgramEffects.cpp [deleted file]
src/gpu/gl/GrGLProgramEffects.h [deleted file]
src/gpu/gl/GrGpuGL.h
src/gpu/gl/GrGpuGL_program.cpp
src/gpu/gl/builders/GrGLFragmentOnlyProgramBuilder.cpp [deleted file]
src/gpu/gl/builders/GrGLFragmentOnlyProgramBuilder.h [deleted file]
src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp
src/gpu/gl/builders/GrGLFragmentShaderBuilder.h
src/gpu/gl/builders/GrGLFullProgramBuilder.cpp [deleted file]
src/gpu/gl/builders/GrGLFullProgramBuilder.h [deleted file]
src/gpu/gl/builders/GrGLGeometryShaderBuilder.cpp
src/gpu/gl/builders/GrGLGeometryShaderBuilder.h
src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.cpp [new file with mode: 0644]
src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.h [new file with mode: 0644]
src/gpu/gl/builders/GrGLNvprProgramBuilder.cpp [new file with mode: 0644]
src/gpu/gl/builders/GrGLNvprProgramBuilder.h [new file with mode: 0644]
src/gpu/gl/builders/GrGLProgramBuilder.cpp
src/gpu/gl/builders/GrGLProgramBuilder.h
src/gpu/gl/builders/GrGLShaderBuilder.cpp
src/gpu/gl/builders/GrGLShaderBuilder.h
src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp
src/gpu/gl/builders/GrGLVertexShaderBuilder.h
tests/GLProgramsTest.cpp