From e659a581f63fdccb64dce2dc8a478cf56831feea Mon Sep 17 00:00:00 2001 From: egdaniel Date: Fri, 13 Nov 2015 09:55:43 -0800 Subject: Move GrGLPrimitive/GeometryProc to GLSL BUG=skia: Review URL: https://codereview.chromium.org/1441683008 --- src/gpu/gl/builders/GrGLProgramBuilder.cpp | 6 +++--- src/gpu/gl/builders/GrGLProgramBuilder.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/gpu/gl/builders') diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp index 8dca667e41..f5108c26af 100644 --- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp +++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp @@ -13,13 +13,13 @@ #include "GrTexture.h" #include "SkRTConf.h" #include "SkTraceEvent.h" -#include "gl/GrGLGeometryProcessor.h" #include "gl/GrGLGpu.h" #include "gl/GrGLProgram.h" #include "gl/GrGLSLPrettyPrint.h" #include "gl/builders/GrGLShaderStringBuilder.h" #include "glsl/GrGLSLCaps.h" #include "glsl/GrGLSLFragmentProcessor.h" +#include "glsl/GrGLSLGeometryProcessor.h" #include "glsl/GrGLSLProgramDataManager.h" #include "glsl/GrGLSLTextureSampler.h" #include "glsl/GrGLSLXferProcessor.h" @@ -153,7 +153,7 @@ const GrGLSLCaps* GrGLProgramBuilder::glslCaps() const { bool GrGLProgramBuilder::emitAndInstallProcs(GrGLSLExpr4* inputColor, GrGLSLExpr4* inputCoverage) { // First we loop over all of the installed processors and collect coord transforms. These will - // be sent to the GrGLPrimitiveProcessor in its emitCode function + // be sent to the GrGLSLPrimitiveProcessor in its emitCode function const GrPrimitiveProcessor& primProc = this->primitiveProcessor(); int totalTextures = primProc.numTextures(); const int maxTextureUnits = fGpu->glCaps().maxFragmentTextureUnits(); @@ -284,7 +284,7 @@ void GrGLProgramBuilder::emitAndInstallProc(const GrPrimitiveProcessor& gp, SkSTArray<4, GrGLSLTextureSampler> samplers(gp.numTextures()); this->emitSamplers(gp, &samplers, fGeometryProcessor); - GrGLGeometryProcessor::EmitArgs args(this, gp, outColor, outCoverage, samplers, + GrGLSLGeometryProcessor::EmitArgs args(this, gp, outColor, outCoverage, samplers, fCoordTransforms, &fOutCoords); fGeometryProcessor->fGLProc->emitCode(args); diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.h b/src/gpu/gl/builders/GrGLProgramBuilder.h index 02fa88688b..3a8dcd8500 100644 --- a/src/gpu/gl/builders/GrGLProgramBuilder.h +++ b/src/gpu/gl/builders/GrGLProgramBuilder.h @@ -9,8 +9,8 @@ #define GrGLProgramBuilder_DEFINED #include "GrPipeline.h" -#include "gl/GrGLPrimitiveProcessor.h" #include "gl/GrGLProgramDataManager.h" +#include "glsl/GrGLSLPrimitiveProcessor.h" #include "glsl/GrGLSLProgramBuilder.h" #include "glsl/GrGLSLProgramDataManager.h" #include "glsl/GrGLSLTextureSampler.h" @@ -30,7 +30,7 @@ struct GrGLInstalledProc { SkAutoTDelete fGLProc; }; -typedef GrGLInstalledProc GrGLInstalledGeoProc; +typedef GrGLInstalledProc GrGLInstalledGeoProc; typedef GrGLInstalledProc GrGLInstalledXferProc; typedef GrGLInstalledProc GrGLInstalledFragProc; @@ -176,8 +176,8 @@ private: GrGLGpu* fGpu; UniformInfoArray fUniforms; - GrGLPrimitiveProcessor::TransformsIn fCoordTransforms; - GrGLPrimitiveProcessor::TransformsOut fOutCoords; + GrGLSLPrimitiveProcessor::TransformsIn fCoordTransforms; + GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; SkTArray fSamplerUniforms; SeparableVaryingInfoArray fSeparableVaryingInfos; -- cgit v1.2.3