diff options
author | 2016-04-11 12:18:09 -0700 | |
---|---|---|
committer | 2016-04-11 12:18:09 -0700 | |
commit | 3f6f76f98b6b37d17d1492791ff0feb1b7586bd6 (patch) | |
tree | f9d4ea6d87cfe9f1f05626eaac549e163bd00638 /src/gpu/glsl/GrGLSLFragmentProcessor.h | |
parent | a6b92ad1f7b79106caef6a4c721903544f507a02 (diff) |
Rename EmitArgs::fSamplers to fTexSamplers
Renames fSamplers to fTexSamplers in GrProcessor EmitArgs, and renames
GrGLSLTextureSampler to GrGLSLSampler. This will allow us to add a
second array of buffer samplers.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1862373003
Review URL: https://codereview.chromium.org/1862373003
Diffstat (limited to 'src/gpu/glsl/GrGLSLFragmentProcessor.h')
-rw-r--r-- | src/gpu/glsl/GrGLSLFragmentProcessor.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gpu/glsl/GrGLSLFragmentProcessor.h b/src/gpu/glsl/GrGLSLFragmentProcessor.h index ae2d69dbce..5c71340a1c 100644 --- a/src/gpu/glsl/GrGLSLFragmentProcessor.h +++ b/src/gpu/glsl/GrGLSLFragmentProcessor.h @@ -8,9 +8,10 @@ #ifndef GrGLSLFragmentProcessor_DEFINED #define GrGLSLFragmentProcessor_DEFINED +#include "GrFragmentProcessor.h" #include "glsl/GrGLSLProcessorTypes.h" #include "glsl/GrGLSLProgramDataManager.h" -#include "glsl/GrGLSLTextureSampler.h" +#include "glsl/GrGLSLSampler.h" class GrProcessor; class GrProcessorKeyBuilder; @@ -30,7 +31,7 @@ public: } typedef GrGLSLProgramDataManager::UniformHandle UniformHandle; - typedef GrGLSLTextureSampler::TextureSamplerArray TextureSamplerArray; + typedef GrGLSLSampler::SamplerArray SamplerArray; /** Called when the program stage should insert its code into the shaders. The code in each shader will be in its own block ({}) and so locally scoped names will not collide across @@ -59,7 +60,7 @@ public: const char* outputColor, const char* inputColor, const GrGLSLTransformedCoordsArray& coords, - const TextureSamplerArray& samplers) + const SamplerArray& texSamplers) : fFragBuilder(fragBuilder) , fUniformHandler(uniformHandler) , fGLSLCaps(caps) @@ -67,7 +68,7 @@ public: , fOutputColor(outputColor) , fInputColor(inputColor) , fCoords(coords) - , fSamplers(samplers) {} + , fTexSamplers(texSamplers) {} GrGLSLFPFragmentBuilder* fFragBuilder; GrGLSLUniformHandler* fUniformHandler; const GrGLSLCaps* fGLSLCaps; @@ -75,7 +76,7 @@ public: const char* fOutputColor; const char* fInputColor; const GrGLSLTransformedCoordsArray& fCoords; - const TextureSamplerArray& fSamplers; + const SamplerArray& fTexSamplers; }; virtual void emitCode(EmitArgs&) = 0; |