Index: include/gpu/GrPaint.h |
diff --git a/include/gpu/GrPaint.h b/include/gpu/GrPaint.h |
index c00e148397cff8fea046d1af3c4fce8b5bd89efd..22951f94a2d71319a25f8137edbb0b01d16d31ab 100644 |
--- a/include/gpu/GrPaint.h |
+++ b/include/gpu/GrPaint.h |
@@ -125,6 +125,7 @@ public: |
fCoverageStages = paint.fCoverageStages; |
fXPFactory.reset(SkRef(paint.getXPFactory())); |
+ fProcDataManager.reset(SkNEW_ARGS(GrProcessorDataManager, (*paint.processorDataManager()))); |
return *this; |
} |
@@ -137,18 +138,20 @@ public: |
*/ |
bool isConstantBlendedColor(GrColor* constantColor) const; |
- GrProcessorDataManager* getProcessorDataManager() { return &fProcDataManager; } |
+ GrProcessorDataManager* getProcessorDataManager() { return fProcDataManager.get(); } |
+ |
+ const GrProcessorDataManager* processorDataManager() const { return fProcDataManager.get(); } |
private: |
mutable SkAutoTUnref<const GrXPFactory> fXPFactory; |
- SkSTArray<4, GrFragmentStage> fColorStages; |
- SkSTArray<2, GrFragmentStage> fCoverageStages; |
+ SkSTArray<4, GrFragmentStage> fColorStages; |
+ SkSTArray<2, GrFragmentStage> fCoverageStages; |
- bool fAntiAlias; |
- bool fDither; |
+ bool fAntiAlias; |
+ bool fDither; |
- GrColor fColor; |
- GrProcessorDataManager fProcDataManager; |
+ GrColor fColor; |
+ SkAutoTUnref<GrProcessorDataManager> fProcDataManager; |
}; |
#endif |