Chromium Code Reviews| Index: src/gpu/GrPaint.cpp |
| diff --git a/src/gpu/GrPaint.cpp b/src/gpu/GrPaint.cpp |
| index 7d89535a11c7be1d1b2ace710c0b650af2f9a555..9ac62378a87b0e41ff7c2bb06e33b599d28fcb73 100644 |
| --- a/src/gpu/GrPaint.cpp |
| +++ b/src/gpu/GrPaint.cpp |
| @@ -10,6 +10,7 @@ |
| #include "GrBlend.h" |
| #include "GrProcOptInfo.h" |
| +#include "effects/GrDefaultXferProcessor.h" |
| #include "effects/GrSimpleTextureEffect.h" |
| void GrPaint::addColorTextureProcessor(GrTexture* texture, const SkMatrix& matrix) { |
| @@ -48,6 +49,12 @@ bool GrPaint::isOpaqueAndConstantColor(GrColor* color) const { |
| return false; |
| } |
| +void GrPaint::resetStages() { |
| + fColorStages.reset(); |
| + fCoverageStages.reset(); |
| + fXPFactory.reset(GrDefaultXPFactory::Create()); |
|
bsalomon
2014/11/26 21:02:45
again, do we need the hasXPFactory if we install o
egdaniel
2014/12/01 18:18:24
gone
|
| +} |
| + |
| bool GrPaint::getOpaqueAndKnownColor(GrColor* solidColor, |
| uint32_t* solidColorKnownComponents) const { |
| @@ -114,3 +121,5 @@ bool GrPaint::getOpaqueAndKnownColor(GrColor* solidColor, |
| } |
| return opaque; |
| } |
| + |
| + |
|
joshualitt
2014/11/26 20:10:34
extra newlines
|