291 {
292 if (unitIdx >= fNumTextureUnits) {
293 return;
294 }
295
296
299 if (!sampler) {
303 return;
304 }
322 maxAniso));
323 }
324 }
326 if (!fTextureUnitStates[unitIdx].fKnown ||
327 fTextureUnitStates[unitIdx].fSamplerIDIfKnown != sampler->id()) {
329 fTextureUnitStates[unitIdx].fSamplerIDIfKnown = sampler->id();
330 fTextureUnitStates[unitIdx].fKnown = true;
331 }
332 }
#define GR_GL_TEXTURE_MAX_ANISOTROPY
#define GR_GL_TEXTURE_WRAP_T
#define GR_GL_TEXTURE_MAG_FILTER
#define GR_GL_TEXTURE_WRAP_S
#define GR_GL_TEXTURE_MIN_FILTER
static GrGLenum wrap_mode_to_gl_wrap(GrSamplerState::WrapMode wrapMode, const GrCaps &caps)
static GrGLenum filter_to_gl_min_filter(GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm)
static GrGLenum filter_to_gl_mag_filter(GrSamplerState::Filter filter)
#define GR_GL_CALL(IFACE, X)
bool anisoSupport() const
float maxTextureMaxAnisotropy() const
const GrGLInterface * glInterface() const
V * insert(const K &key, V value)
static float min(float r, float g, float b)