diff options
author | 2015-04-28 08:48:20 -0700 | |
---|---|---|
committer | 2015-04-28 08:48:20 -0700 | |
commit | cfc18867d982119d9dc2888bf09f1093012daadd (patch) | |
tree | af55e571828da1a7353457451bafab547079fa1f /src/gpu/effects/GrBitmapTextGeoProc.cpp | |
parent | 77772f3ca36c3fb7f2195615cce2adac2be2fec6 (diff) |
Use GLSLCaps for creating processor keys and GLSL-specific programs
Effectively all this does is future-proof any GLSL-specific code, as
GLSLCaps is just a typedef of GLCaps.
BUG=skia:
Review URL: https://codereview.chromium.org/1109863004
Diffstat (limited to 'src/gpu/effects/GrBitmapTextGeoProc.cpp')
-rw-r--r-- | src/gpu/effects/GrBitmapTextGeoProc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/effects/GrBitmapTextGeoProc.cpp b/src/gpu/effects/GrBitmapTextGeoProc.cpp index 25904f753f..7cce1df201 100644 --- a/src/gpu/effects/GrBitmapTextGeoProc.cpp +++ b/src/gpu/effects/GrBitmapTextGeoProc.cpp @@ -92,7 +92,7 @@ public: static inline void GenKey(const GrGeometryProcessor& proc, const GrBatchTracker& bt, - const GrGLCaps&, + const GrGLSLCaps&, GrProcessorKeyBuilder* b) { const BitmapTextBatchTracker& local = bt.cast<BitmapTextBatchTracker>(); // We have to put the optional vertex attribute as part of the key. See the comment @@ -164,14 +164,14 @@ void GrBitmapTextGeoProc::onGetInvariantOutputCoverage(GrInitInvariantOutput* ou } void GrBitmapTextGeoProc::getGLProcessorKey(const GrBatchTracker& bt, - const GrGLCaps& caps, + const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const { GrGLBitmapTextGeoProc::GenKey(*this, bt, caps, b); } GrGLPrimitiveProcessor* GrBitmapTextGeoProc::createGLInstance(const GrBatchTracker& bt, - const GrGLCaps& caps) const { + const GrGLSLCaps& caps) const { return SkNEW_ARGS(GrGLBitmapTextGeoProc, (*this, bt)); } |