Lines Matching refs:GL_ZERO
55 const Blender kBlends[] = {{SkBlendMode::kClear, GL_ZERO, GL_ONE_MINUS_SRC_ALPHA},
56 {SkBlendMode::kSrc, GL_ONE, GL_ZERO},
57 {SkBlendMode::kDst, GL_ZERO, GL_ONE},
60 {SkBlendMode::kSrcIn, GL_DST_ALPHA, GL_ZERO},
61 {SkBlendMode::kDstIn, GL_ZERO, GL_SRC_ALPHA},
62 {SkBlendMode::kSrcOut, GL_ONE_MINUS_DST_ALPHA, GL_ZERO},
63 {SkBlendMode::kDstOut, GL_ZERO, GL_ONE_MINUS_SRC_ALPHA},
68 {SkBlendMode::kModulate, GL_ZERO, GL_SRC_COLOR},
74 const Blender kBlendsSwap[] = {{SkBlendMode::kClear, GL_ONE_MINUS_DST_ALPHA, GL_ZERO},
75 {SkBlendMode::kSrc, GL_ZERO, GL_ONE},
76 {SkBlendMode::kDst, GL_ONE, GL_ZERO},
79 {SkBlendMode::kSrcIn, GL_ZERO, GL_SRC_ALPHA},
80 {SkBlendMode::kDstIn, GL_DST_ALPHA, GL_ZERO},
81 {SkBlendMode::kSrcOut, GL_ZERO, GL_ONE_MINUS_SRC_ALPHA},
82 {SkBlendMode::kDstOut, GL_ONE_MINUS_DST_ALPHA, GL_ZERO},
87 {SkBlendMode::kModulate, GL_DST_COLOR, GL_ZERO},
90 Blend::Blend() : mEnabled(false), mSrcMode(GL_ZERO), mDstMode(GL_ZERO) { in Blend()
96 mSrcMode = mDstMode = GL_ZERO; in invalidate()
114 if ((srcMode == GL_ZERO || srcMode == GL_ONE) && dstMode == GL_ZERO) { in setFactors()