Lines Matching defs:blend
216 mCaches.blend = true;
401 * changing the GL blend functions for the GL_FUNC_ADD blend equation to
1102 chooseBlending((mColorSet && mColorA < 1.0f) || (mShader && mShader->blend()), mode,
1106 void OpenGLRenderer::setupDrawBlending(bool blend, SkXfermode::Mode mode, bool swapSrcDst) {
1110 chooseBlending(blend || (mColorSet && mColorA < 1.0f) || (mShader && mShader->blend()), mode,
1468 mode, texture->blend, &mesh[0].position[0], &mesh[0].texture[0],
1513 texture->id, alpha / 255.0f, mode, texture->blend,
1520 mode, texture->blend, &mMeshVertices[0].position[0], &mMeshVertices[0].texture[0],
1575 mode, texture->blend, (GLvoid*) 0, (GLvoid*) gMeshTextureOffset,
1580 mode, texture->blend, (GLvoid*) 0, (GLvoid*) gMeshTextureOffset,
2451 alpha / 255.0f, mode, texture->blend, (GLvoid*) NULL,
2456 texture->blend, (GLvoid*) NULL, (GLvoid*) gMeshTextureOffset,
2462 GLuint texture, float alpha, SkXfermode::Mode mode, bool blend) {
2463 drawTextureMesh(left, top, right, bottom, texture, alpha, mode, blend,
2468 GLuint texture, float alpha, SkXfermode::Mode mode, bool blend,
2476 setupDrawBlending(blend, mode, swapSrcDst);
2496 void OpenGLRenderer::chooseBlending(bool blend, SkXfermode::Mode mode,
2498 blend = blend || mode != SkXfermode::kSrcOver_Mode;
2499 if (blend) {
2501 if (!mCaches.blend) {
2514 // These blend modes are not supported by OpenGL directly and have
2522 if (mCaches.blend) {
2525 blend = false;
2527 } else if (mCaches.blend) {
2530 mCaches.blend = blend;