Searched refs:lastUnitIdx (Results 1 – 2 of 2) sorted by relevance
3141 int lastUnitIdx = this->numTextureUnits() - 1; in bindTextureToScratchUnit() local3142 if (lastUnitIdx != fHWActiveTextureUnitIdx) { in bindTextureToScratchUnit()3143 GL_CALL(ActiveTexture(GR_GL_TEXTURE0 + lastUnitIdx)); in bindTextureToScratchUnit()3144 fHWActiveTextureUnitIdx = lastUnitIdx; in bindTextureToScratchUnit()3148 fHWTextureUnitBindings[lastUnitIdx].invalidateForScratchUse(target); in bindTextureToScratchUnit()
3114 int lastUnitIdx = fHWBoundTextureUniqueIDs.count() - 1; in setScratchTextureUnit() local3115 if (lastUnitIdx != fHWActiveTextureUnitIdx) { in setScratchTextureUnit()3116 GL_CALL(ActiveTexture(GR_GL_TEXTURE0 + lastUnitIdx)); in setScratchTextureUnit()3117 fHWActiveTextureUnitIdx = lastUnitIdx; in setScratchTextureUnit()3121 fHWBoundTextureUniqueIDs[lastUnitIdx].makeInvalid(); in setScratchTextureUnit()