Index: src/gpu/GrPaint.cpp |
diff --git a/src/gpu/GrPaint.cpp b/src/gpu/GrPaint.cpp |
index 1df2b39d1c705231dce77431629576e9ab3d99bd..d35b41feb31c8ff9ec512c18347ca2705204d232 100644 |
--- a/src/gpu/GrPaint.cpp |
+++ b/src/gpu/GrPaint.cpp |
@@ -12,6 +12,12 @@ |
#include "effects/GrPorterDuffXferProcessor.h" |
#include "effects/GrSimpleTextureEffect.h" |
+GrPaint::GrPaint() |
+ : fAntiAlias(false) |
+ , fDither(false) |
+ , fColor(GrColor_WHITE) { |
+} |
+ |
void GrPaint::addColorTextureProcessor(GrTexture* texture, const SkMatrix& matrix) { |
this->addColorProcessor(GrSimpleTextureEffect::Create(texture, matrix))->unref(); |
} |
@@ -50,10 +56,3 @@ bool GrPaint::isOpaqueAndConstantColor(GrColor* color) const { |
} |
return false; |
} |
- |
-void GrPaint::resetStages() { |
- fColorStages.reset(); |
- fCoverageStages.reset(); |
- fXPFactory.reset(GrPorterDuffXPFactory::Create(SkXfermode::kSrc_Mode)); |
-} |
- |