Home | History | Annotate | Download | only in gl

Lines Matching full:unitidx

1999 void GrGpuGL::bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* texture) {
2010 if (fHWBoundTextures[unitIdx] != texture) {
2011 this->setTextureUnit(unitIdx);
2013 fHWBoundTextures[unitIdx] = texture;
2047 this->setTextureUnit(unitIdx);
2053 this->setTextureUnit(unitIdx);
2059 this->setTextureUnit(unitIdx);
2065 this->setTextureUnit(unitIdx);
2074 this->setTextureUnit(unitIdx);
2113 void GrGpuGL::enableTexGen(int unitIdx,
2118 SkASSERT(this->glCaps().maxFixedFunctionTextureCoords() >= unitIdx);
2120 if (GR_GL_OBJECT_LINEAR == fHWTexGenSettings[unitIdx].fMode &&
2121 components == fHWTexGenSettings[unitIdx].fNumComponents &&
2122 !memcmp(coefficients, fHWTexGenSettings[unitIdx].fCoefficients,
2127 this->setTextureUnit(unitIdx);
2129 if (GR_GL_OBJECT_LINEAR != fHWTexGenSettings[unitIdx].fMode) {
2133 fHWTexGenSettings[unitIdx].fMode = GR_GL_OBJECT_LINEAR;
2136 for (int i = fHWTexGenSettings[unitIdx].fNumComponents; i < components; i++) {
2139 for (int i = components; i < fHWTexGenSettings[unitIdx].fNumComponents; i++) {
2142 fHWTexGenSettings[unitIdx].fNumComponents = components;
2153 GL_CALL(PathTexGen(GR_GL_TEXTURE0 + unitIdx,
2159 memcpy(fHWTexGenSettings[unitIdx].fCoefficients, coefficients,
2163 void GrGpuGL::enableTexGen(int unitIdx, TexGenComponents components, const SkMatrix& matrix) {
2184 enableTexGen(unitIdx, components, coefficients);