| Index: src/gpu/GrDrawState.h
|
| diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h
|
| index 7d3c1e9843220e9369859fbca693b5377f96b7a9..24f987d0ce535147e166526d95d355d9af681545 100644
|
| --- a/src/gpu/GrDrawState.h
|
| +++ b/src/gpu/GrDrawState.h
|
| @@ -20,6 +20,7 @@
|
| #include "GrXferProcessor.h"
|
| #include "SkMatrix.h"
|
| #include "effects/GrCoverageSetOpXP.h"
|
| +#include "effects/GrDisableColorXP.h"
|
| #include "effects/GrPorterDuffXferProcessor.h"
|
| #include "effects/GrSimpleTextureEffect.h"
|
|
|
| @@ -144,6 +145,10 @@ public:
|
| fXPFactory.reset(GrCoverageSetOpXPFactory::Create(regionOp, invertCoverage));
|
| }
|
|
|
| + void setDisableColorXPFactory() {
|
| + fXPFactory.reset(GrDisableColorXPFactory::Create());
|
| + }
|
| +
|
| const GrFragmentProcessor* addColorProcessor(const GrFragmentProcessor* effect) {
|
| SkASSERT(effect);
|
| SkNEW_APPEND_TO_TARRAY(&fColorStages, GrFragmentStage, (effect));
|
| @@ -410,17 +415,11 @@ public:
|
| * Draws will respect the clip, otherwise the clip is ignored.
|
| */
|
| kClip_StateBit = 0x04,
|
| - /**
|
| - * Disables writing to the color buffer. Useful when performing stencil
|
| - * operations.
|
| - */
|
| - kNoColorWrites_StateBit = 0x08,
|
|
|
| - kLast_StateBit = kNoColorWrites_StateBit,
|
| + kLast_StateBit = kClip_StateBit,
|
| };
|
|
|
| bool isClipState() const { return 0 != (fFlagBits & kClip_StateBit); }
|
| - bool isColorWriteDisabled() const { return 0 != (fFlagBits & kNoColorWrites_StateBit); }
|
| bool isDither() const { return 0 != (fFlagBits & kDither_StateBit); }
|
| bool isHWAntialias() const { return 0 != (fFlagBits & kHWAntialias_StateBit); }
|
|
|
|
|