Home
last modified time | relevance | path

Searched refs:lastUnitIdx (Results 1 – 2 of 2) sorted by relevance

/external/skia/src/gpu/gl/
DGrGLGpu.cpp3141 int lastUnitIdx = this->numTextureUnits() - 1; in bindTextureToScratchUnit() local
3142 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()
/external/skqp/src/gpu/gl/
DGrGLGpu.cpp3114 int lastUnitIdx = fHWBoundTextureUniqueIDs.count() - 1; in setScratchTextureUnit() local
3115 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()