| Index: src/gpu/GrPaint.cpp
|
| diff --git a/src/gpu/GrPaint.cpp b/src/gpu/GrPaint.cpp
|
| index 7d89535a11c7be1d1b2ace710c0b650af2f9a555..cd2a620769256999450f5337be167c7ef0c48ad4 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());
|
| +}
|
| +
|
| bool GrPaint::getOpaqueAndKnownColor(GrColor* solidColor,
|
| uint32_t* solidColorKnownComponents) const {
|
|
|
| @@ -114,3 +121,4 @@ bool GrPaint::getOpaqueAndKnownColor(GrColor* solidColor,
|
| }
|
| return opaque;
|
| }
|
| +
|
|
|