Index: include/gpu/GrPaint.h |
diff --git a/include/gpu/GrPaint.h b/include/gpu/GrPaint.h |
index f8aaa0e04c915ba3b68c2db3b6f2b2686695394c..51a49210c6a7547f9ce16273e9ab314a359d180e 100644 |
--- a/include/gpu/GrPaint.h |
+++ b/include/gpu/GrPaint.h |
@@ -136,7 +136,6 @@ public: |
} |
fXPFactory.reset(SkRef(paint.getXPFactory())); |
- fProcDataManager.reset(new GrProcessorDataManager(*paint.processorDataManager())); |
return *this; |
} |
@@ -149,9 +148,9 @@ public: |
*/ |
bool isConstantBlendedColor(GrColor* constantColor) const; |
- GrProcessorDataManager* getProcessorDataManager() { return fProcDataManager.get(); } |
+ GrProcessorDataManager* getProcessorDataManager() { return &fProcDataManager; } |
- const GrProcessorDataManager* processorDataManager() const { return fProcDataManager.get(); } |
+ const GrProcessorDataManager* processorDataManager() const { return &fProcDataManager; } |
private: |
void resetFragmentProcessors() { |
@@ -173,7 +172,7 @@ private: |
bool fDither; |
GrColor fColor; |
- SkAutoTUnref<GrProcessorDataManager> fProcDataManager; |
+ GrProcessorDataManager fProcDataManager; |
}; |
#endif |