Index: src/gpu/gl/GrGpuGL_program.cpp |
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp |
index 891b49a1f87f7c5f3577e49423599f99c66a5741..4529a1c22e151bf0a2f3f82b1ff19b4580300e7d 100644 |
--- a/src/gpu/gl/GrGpuGL_program.cpp |
+++ b/src/gpu/gl/GrGpuGL_program.cpp |
@@ -7,7 +7,6 @@ |
#include "GrGpuGL.h" |
-#include "builders/GrGLProgramBuilder.h" |
#include "GrProcessor.h" |
#include "GrGLProcessor.h" |
#include "GrGLPathRendering.h" |
@@ -93,7 +92,6 @@ |
GrGLProgram* GrGpuGL::ProgramCache::getProgram(const GrOptDrawState& optState, |
const GrGLProgramDesc& desc, |
- DrawType type, |
const GrGeometryStage* geometryProcessor, |
const GrFragmentStage* colorStages[], |
const GrFragmentStage* coverageStages[]) { |
@@ -131,9 +129,8 @@ |
#ifdef PROGRAM_CACHE_STATS |
++fCacheMisses; |
#endif |
- GrGLProgram* program = GrGLProgramBuilder::CreateProgram(optState, desc, type, |
- geometryProcessor, colorStages, |
- coverageStages, fGpu); |
+ GrGLProgram* program = GrGLProgram::Create(fGpu, optState, desc, geometryProcessor, |
+ colorStages, coverageStages); |
if (NULL == program) { |
return NULL; |
} |
@@ -257,7 +254,6 @@ |
fCurrentProgram.reset(fProgramCache->getProgram(*optState.get(), |
desc, |
- type, |
geometryProcessor, |
colorStages.begin(), |
coverageStages.begin())); |