diff options
author | 2015-11-13 06:54:19 -0800 | |
---|---|---|
committer | 2015-11-13 06:54:19 -0800 | |
commit | 64c4728c70001ed074fecf5c4e083781987b12e9 (patch) | |
tree | 9c46b7028d1d04b526cca0671deb88aa003fc8d6 /src/gpu/effects/GrTextureDomain.cpp | |
parent | 6b90df6b1c6ed843be3ac09605050605f9ec9150 (diff) |
Make all GrFragmentProcessors GL independent.
TBR=bsalomon@google.com
BUG=skia:
Review URL: https://codereview.chromium.org/1434313002
Diffstat (limited to 'src/gpu/effects/GrTextureDomain.cpp')
-rw-r--r-- | src/gpu/effects/GrTextureDomain.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpu/effects/GrTextureDomain.cpp b/src/gpu/effects/GrTextureDomain.cpp index cd89a59ac8..42d6d70816 100644 --- a/src/gpu/effects/GrTextureDomain.cpp +++ b/src/gpu/effects/GrTextureDomain.cpp @@ -9,8 +9,7 @@ #include "GrInvariantOutput.h" #include "GrSimpleTextureEffect.h" #include "SkFloatingPoint.h" -#include "gl/GrGLContext.h" -#include "gl/GrGLFragmentProcessor.h" +#include "glsl/GrGLSLFragmentProcessor.h" #include "glsl/GrGLSLProgramBuilder.h" #include "glsl/GrGLSLProgramDataManager.h" #include "glsl/GrGLSLTextureSampler.h" @@ -173,7 +172,7 @@ void GrTextureDomain::GLDomain::setData(const GrGLSLProgramDataManager& pdman, ////////////////////////////////////////////////////////////////////////////// -class GrGLTextureDomainEffect : public GrGLFragmentProcessor { +class GrGLTextureDomainEffect : public GrGLSLFragmentProcessor { public: GrGLTextureDomainEffect(const GrProcessor&); @@ -186,7 +185,7 @@ protected: private: GrTextureDomain::GLDomain fGLDomain; - typedef GrGLFragmentProcessor INHERITED; + typedef GrGLSLFragmentProcessor INHERITED; }; GrGLTextureDomainEffect::GrGLTextureDomainEffect(const GrProcessor&) { @@ -253,7 +252,7 @@ void GrTextureDomainEffect::onGetGLProcessorKey(const GrGLSLCaps& caps, GrGLTextureDomainEffect::GenKey(*this, caps, b); } -GrGLFragmentProcessor* GrTextureDomainEffect::onCreateGLInstance() const { +GrGLSLFragmentProcessor* GrTextureDomainEffect::onCreateGLInstance() const { return new GrGLTextureDomainEffect(*this); } |