Chromium Code Reviews| Index: src/gpu/effects/GrBezierEffect.cpp |
| diff --git a/src/gpu/effects/GrBezierEffect.cpp b/src/gpu/effects/GrBezierEffect.cpp |
| index 2a4ef3692f5eb42f83e7a93185fe318c56f7965a..6cb4a3a479c503df57a425f1ab01ee6cee05a858 100644 |
| --- a/src/gpu/effects/GrBezierEffect.cpp |
| +++ b/src/gpu/effects/GrBezierEffect.cpp |
| @@ -165,6 +165,7 @@ void GrGLConicEffect::GenKey(const GrGeometryProcessor& processor, |
| uint32_t key = ce.isAntiAliased() ? (ce.isFilled() ? 0x0 : 0x1) : 0x2; |
| key |= kUniform_GrGPInput == local.fInputColorType ? 0x4 : 0x0; |
| key |= 0xff != local.fCoverageScale ? 0x8 : 0x0; |
| + key |= local.fUsesLocalCoords && processor.localMatrix().hasPerspective() ? 0x16 : 0x0; |
|
bsalomon
2014/12/22 21:13:55
0x10? and others below
|
| b->add32(key); |
| } |
| @@ -374,6 +375,7 @@ void GrGLQuadEffect::GenKey(const GrGeometryProcessor& processor, |
| uint32_t key = ce.isAntiAliased() ? (ce.isFilled() ? 0x0 : 0x1) : 0x2; |
| key |= kUniform_GrGPInput == local.fInputColorType ? 0x4 : 0x0; |
| key |= 0xff != local.fCoverageScale ? 0x8 : 0x0; |
| + key |= local.fUsesLocalCoords && processor.localMatrix().hasPerspective() ? 0x16 : 0x0; |
| b->add32(key); |
| } |
| @@ -605,6 +607,7 @@ void GrGLCubicEffect::GenKey(const GrGeometryProcessor& processor, |
| const CubicBatchTracker& local = bt.cast<CubicBatchTracker>(); |
| uint32_t key = ce.isAntiAliased() ? (ce.isFilled() ? 0x0 : 0x1) : 0x2; |
| key |= kUniform_GrGPInput == local.fInputColorType ? 0x4 : 0x8; |
| + key |= local.fUsesLocalCoords && processor.localMatrix().hasPerspective() ? 0x16 : 0x0; |
| b->add32(key); |
| } |