Lines Matching refs:description
118 ProgramCache::Key ProgramCache::computeKey(const Description& description) { in computeKey() argument
121 !description.mTextureEnabled ? Key::TEXTURE_OFF : in computeKey()
122 description.mTexture.getTextureTarget() == GL_TEXTURE_EXTERNAL_OES ? Key::TEXTURE_EXT : in computeKey()
123 description.mTexture.getTextureTarget() == GL_TEXTURE_2D ? Key::TEXTURE_2D : in computeKey()
126 (description.mPlaneAlpha < 1) ? Key::PLANE_ALPHA_LT_ONE : Key::PLANE_ALPHA_EQ_ONE) in computeKey()
128 description.mPremultipliedAlpha ? Key::BLEND_PREMULT : Key::BLEND_NORMAL) in computeKey()
130 description.mOpaque ? Key::OPACITY_OPAQUE : Key::OPACITY_TRANSLUCENT) in computeKey()
132 description.mColorMatrixEnabled ? Key::COLOR_MATRIX_ON : Key::COLOR_MATRIX_OFF); in computeKey()
225 void ProgramCache::useProgram(const Description& description) { in useProgram() argument
228 Key needs(computeKey(description)); in useProgram()
246 program->setUniforms(description); in useProgram()