diff options
author | bsalomon <bsalomon@google.com> | 2014-12-16 07:33:49 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-16 07:33:50 -0800 |
commit | 861e1037017bbb7ac52ec5ebecab3a636a82a3e8 (patch) | |
tree | ba74afb4f14b209b733892c17a02b5c1c99ead24 /src/gpu/gl/builders | |
parent | 702eb9622102599d94ab6798e6227cf29f48c2d3 (diff) |
Rename GrGpuGL to GrGLGpu for consistency
Review URL: https://codereview.chromium.org/808593003
Diffstat (limited to 'src/gpu/gl/builders')
-rw-r--r-- | src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp | 8 | ||||
-rw-r--r-- | src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.cpp | 2 | ||||
-rw-r--r-- | src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.h | 2 | ||||
-rw-r--r-- | src/gpu/gl/builders/GrGLNvprProgramBuilder.cpp | 2 | ||||
-rw-r--r-- | src/gpu/gl/builders/GrGLNvprProgramBuilder.h | 2 | ||||
-rw-r--r-- | src/gpu/gl/builders/GrGLProgramBuilder.cpp | 6 | ||||
-rw-r--r-- | src/gpu/gl/builders/GrGLProgramBuilder.h | 12 | ||||
-rw-r--r-- | src/gpu/gl/builders/GrGLShaderBuilder.cpp | 2 | ||||
-rw-r--r-- | src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp | 2 |
9 files changed, 19 insertions, 19 deletions
diff --git a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp index b6daca7978..7f21fbd631 100644 --- a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp +++ b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp @@ -79,7 +79,7 @@ GrGLFragmentShaderBuilder::GrGLFragmentShaderBuilder(GrGLProgramBuilder* program bool GrGLFragmentShaderBuilder::enableFeature(GLSLFeature feature) { switch (feature) { case kStandardDerivatives_GLSLFeature: { - GrGpuGL* gpu = fProgramBuilder->gpu(); + GrGLGpu* gpu = fProgramBuilder->gpu(); if (!gpu->glCaps().shaderDerivativeSupport()) { return false; } @@ -115,7 +115,7 @@ SkString GrGLFragmentShaderBuilder::ensureFSCoords2D( const char* GrGLFragmentShaderBuilder::fragmentPosition() { fHasReadFragmentPosition = true; - GrGpuGL* gpu = fProgramBuilder->gpu(); + GrGLGpu* gpu = fProgramBuilder->gpu(); // We only declare "gl_FragCoord" when we're in the case where we want to use layout qualifiers // to reverse y. Otherwise it isn't necessary and whether the "in" qualifier appears in the // declaration varies in earlier GLSL specs. So it is simpler to omit it. @@ -166,7 +166,7 @@ const char* GrGLFragmentShaderBuilder::fragmentPosition() { const char* GrGLFragmentShaderBuilder::dstColor() { fHasReadDstColor = true; - GrGpuGL* gpu = fProgramBuilder->gpu(); + GrGLGpu* gpu = fProgramBuilder->gpu(); if (gpu->glCaps().fbFetchSupport()) { this->addFeature(1 << (GrGLFragmentShaderBuilder::kLastGLSLPrivateFeature + 1), gpu->glCaps().fbFetchExtensionString()); @@ -258,7 +258,7 @@ const char* GrGLFragmentShaderBuilder::getSecondaryColorOutputName() const { bool GrGLFragmentShaderBuilder::compileAndAttachShaders(GrGLuint programId, SkTDArray<GrGLuint>* shaderIds) const { - GrGpuGL* gpu = fProgramBuilder->gpu(); + GrGLGpu* gpu = fProgramBuilder->gpu(); SkString fragShaderSrc(GrGetGLSLVersionDecl(gpu->ctxInfo())); fragShaderSrc.append(fExtensions); append_default_precision_qualifier(kDefault_GrSLPrecision, diff --git a/src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.cpp b/src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.cpp index 696c9a5c7f..eeb9974959 100644 --- a/src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.cpp +++ b/src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.cpp @@ -8,7 +8,7 @@ #include "GrGLLegacyNvprProgramBuilder.h" #include "../GrGpuGL.h" -GrGLLegacyNvprProgramBuilder::GrGLLegacyNvprProgramBuilder(GrGpuGL* gpu, +GrGLLegacyNvprProgramBuilder::GrGLLegacyNvprProgramBuilder(GrGLGpu* gpu, const GrOptDrawState& optState) : INHERITED(gpu, optState) , fTexCoordSetCnt(0) { diff --git a/src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.h b/src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.h index 7f7b0fc41c..f34f6ccd26 100644 --- a/src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.h +++ b/src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.h @@ -12,7 +12,7 @@ class GrGLLegacyNvprProgramBuilder : public GrGLProgramBuilder { public: - GrGLLegacyNvprProgramBuilder(GrGpuGL*, const GrOptDrawState&); + GrGLLegacyNvprProgramBuilder(GrGLGpu*, const GrOptDrawState&); virtual GrGLProgram* createProgram(GrGLuint programID) SK_OVERRIDE; diff --git a/src/gpu/gl/builders/GrGLNvprProgramBuilder.cpp b/src/gpu/gl/builders/GrGLNvprProgramBuilder.cpp index 063526d464..b835306986 100644 --- a/src/gpu/gl/builders/GrGLNvprProgramBuilder.cpp +++ b/src/gpu/gl/builders/GrGLNvprProgramBuilder.cpp @@ -11,7 +11,7 @@ #define GL_CALL(X) GR_GL_CALL(this->gpu()->glInterface(), X) #define GL_CALL_RET(R, X) GR_GL_CALL_RET(this->gpu()->glInterface(), R, X) -GrGLNvprProgramBuilder::GrGLNvprProgramBuilder(GrGpuGL* gpu, +GrGLNvprProgramBuilder::GrGLNvprProgramBuilder(GrGLGpu* gpu, const GrOptDrawState& optState) : INHERITED(gpu, optState) , fSeparableVaryingInfos(kVarsPerBlock) { diff --git a/src/gpu/gl/builders/GrGLNvprProgramBuilder.h b/src/gpu/gl/builders/GrGLNvprProgramBuilder.h index 5f239055fa..cfb07fd254 100644 --- a/src/gpu/gl/builders/GrGLNvprProgramBuilder.h +++ b/src/gpu/gl/builders/GrGLNvprProgramBuilder.h @@ -12,7 +12,7 @@ class GrGLNvprProgramBuilder : public GrGLProgramBuilder { public: - GrGLNvprProgramBuilder(GrGpuGL*, const GrOptDrawState&); + GrGLNvprProgramBuilder(GrGLGpu*, const GrOptDrawState&); /* * The separable varying info must be passed to GrGLProgram so this must diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp index bbae592157..6f3214f23a 100644 --- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp +++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp @@ -26,7 +26,7 @@ const int GrGLProgramBuilder::kVarsPerBlock = 8; -GrGLProgram* GrGLProgramBuilder::CreateProgram(const GrOptDrawState& optState, GrGpuGL* gpu) { +GrGLProgram* GrGLProgramBuilder::CreateProgram(const GrOptDrawState& optState, GrGLGpu* gpu) { // create a builder. This will be handed off to effects so they can use it to add // uniforms, varyings, textures, etc SkAutoTDelete<GrGLProgramBuilder> builder(CreateProgramBuilder(optState, @@ -54,7 +54,7 @@ GrGLProgram* GrGLProgramBuilder::CreateProgram(const GrOptDrawState& optState, G GrGLProgramBuilder* GrGLProgramBuilder::CreateProgramBuilder(const GrOptDrawState& optState, bool hasGeometryProcessor, - GrGpuGL* gpu) { + GrGLGpu* gpu) { const GrProgramDesc& desc = optState.programDesc(); if (GrGLProgramDescBuilder::GetHeader(desc).fUseNvpr) { SkASSERT(gpu->glCaps().pathRenderingSupport()); @@ -72,7 +72,7 @@ GrGLProgramBuilder* GrGLProgramBuilder::CreateProgramBuilder(const GrOptDrawStat ///////////////////////////////////////////////////////////////////////////// -GrGLProgramBuilder::GrGLProgramBuilder(GrGpuGL* gpu, const GrOptDrawState& optState) +GrGLProgramBuilder::GrGLProgramBuilder(GrGLGpu* gpu, const GrOptDrawState& optState) : fVS(this) , fGS(this) , fFS(this, optState.programDesc().header().fFragPosKey) diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.h b/src/gpu/gl/builders/GrGLProgramBuilder.h index e4c5f3168e..3fdccca393 100644 --- a/src/gpu/gl/builders/GrGLProgramBuilder.h +++ b/src/gpu/gl/builders/GrGLProgramBuilder.h @@ -71,7 +71,7 @@ public: virtual const GrGLContextInfo& ctxInfo() const = 0; - virtual GrGpuGL* gpu() const = 0; + virtual GrGLGpu* gpu() const = 0; /* * *NOTE* NO MEMBERS ALLOWED, MULTIPLE INHERITANCE @@ -205,7 +205,7 @@ public: * to be used. * @return true if generation was successful. */ - static GrGLProgram* CreateProgram(const GrOptDrawState&, GrGpuGL*); + static GrGLProgram* CreateProgram(const GrOptDrawState&, GrGLGpu*); UniformHandle addUniformArray(uint32_t visibility, GrSLType type, @@ -224,7 +224,7 @@ public: const GrGLContextInfo& ctxInfo() const SK_OVERRIDE; - GrGpuGL* gpu() const SK_OVERRIDE { return fGpu; } + GrGLGpu* gpu() const SK_OVERRIDE { return fGpu; } GrGLFPFragmentBuilder* getFragmentShaderBuilder() SK_OVERRIDE { return &fFS; } GrGLVertexBuilder* getVertexShaderBuilder() SK_OVERRIDE { return &fVS; } @@ -259,9 +259,9 @@ protected: static GrGLProgramBuilder* CreateProgramBuilder(const GrOptDrawState&, bool hasGeometryProcessor, - GrGpuGL*); + GrGLGpu*); - GrGLProgramBuilder(GrGpuGL*, const GrOptDrawState&); + GrGLProgramBuilder(GrGLGpu*, const GrOptDrawState&); const GrOptDrawState& optState() const { return fOptState; } const GrProgramDesc& desc() const { return fDesc; } @@ -377,7 +377,7 @@ protected: const GrOptDrawState& fOptState; const GrProgramDesc& fDesc; - GrGpuGL* fGpu; + GrGLGpu* fGpu; UniformInfoArray fUniforms; SkSTArray<16, TransformVarying, true> fCoordVaryings; diff --git a/src/gpu/gl/builders/GrGLShaderBuilder.cpp b/src/gpu/gl/builders/GrGLShaderBuilder.cpp index 36d124f387..d8dabae760 100644 --- a/src/gpu/gl/builders/GrGLShaderBuilder.cpp +++ b/src/gpu/gl/builders/GrGLShaderBuilder.cpp @@ -21,7 +21,7 @@ inline const char* sample_function_name(GrSLType type, GrGLSLGeneration glslGen) } } void append_texture_lookup(SkString* out, - GrGpuGL* gpu, + GrGLGpu* gpu, const char* samplerName, const char* coordName, uint32_t configComponentMask, diff --git a/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp b/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp index 5f66420eda..1d97e85234 100644 --- a/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp +++ b/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp @@ -85,7 +85,7 @@ void GrGLVertexBuilder::bindVertexAttributes(GrGLuint programID) { bool GrGLVertexBuilder::compileAndAttachShaders(GrGLuint programId, SkTDArray<GrGLuint>* shaderIds) const { - GrGpuGL* gpu = fProgramBuilder->gpu(); + GrGLGpu* gpu = fProgramBuilder->gpu(); const GrGLContext& glCtx = gpu->glContext(); const GrGLContextInfo& ctxInfo = gpu->ctxInfo(); SkString vertShaderSrc(GrGetGLSLVersionDecl(ctxInfo)); |