diff options
author | 2015-09-09 10:00:12 -0700 | |
---|---|---|
committer | 2015-09-09 10:00:12 -0700 | |
commit | af2533a165ae99f79416b730910731768b0a4ddf (patch) | |
tree | 89333f2c9a4e4870d450a96490fe6a1678105858 /src/gpu/GrPaint.cpp | |
parent | 1fcc01c4158bd68c679569e6c7cfbb302d0ce170 (diff) |
Make GrProcessorDataManager a noop
TBR=bsalomon@google.com
BUG=skia:
Review URL: https://codereview.chromium.org/1323963003
Diffstat (limited to 'src/gpu/GrPaint.cpp')
-rw-r--r-- | src/gpu/GrPaint.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/gpu/GrPaint.cpp b/src/gpu/GrPaint.cpp index dc1644b014..3b383681b2 100644 --- a/src/gpu/GrPaint.cpp +++ b/src/gpu/GrPaint.cpp @@ -16,35 +16,34 @@ GrPaint::GrPaint() : fAntiAlias(false) , fDither(false) - , fColor(GrColor_WHITE) - , fProcDataManager(new GrProcessorDataManager) {} + , fColor(GrColor_WHITE) {} void GrPaint::setCoverageSetOpXPFactory(SkRegion::Op regionOp, bool invertCoverage) { fXPFactory.reset(GrCoverageSetOpXPFactory::Create(regionOp, invertCoverage)); } void GrPaint::addColorTextureProcessor(GrTexture* texture, const SkMatrix& matrix) { - this->addColorFragmentProcessor(GrSimpleTextureEffect::Create(fProcDataManager, texture, - matrix))->unref(); + this->addColorFragmentProcessor(GrSimpleTextureEffect::Create(&fProcDataManager, texture, + matrix))->unref(); } void GrPaint::addCoverageTextureProcessor(GrTexture* texture, const SkMatrix& matrix) { - this->addCoverageFragmentProcessor(GrSimpleTextureEffect::Create(fProcDataManager, texture, - matrix))->unref(); + this->addCoverageFragmentProcessor(GrSimpleTextureEffect::Create(&fProcDataManager, texture, + matrix))->unref(); } void GrPaint::addColorTextureProcessor(GrTexture* texture, const SkMatrix& matrix, const GrTextureParams& params) { - this->addColorFragmentProcessor(GrSimpleTextureEffect::Create(fProcDataManager, texture, matrix, - params))->unref(); + this->addColorFragmentProcessor(GrSimpleTextureEffect::Create(&fProcDataManager, texture, + matrix, params))->unref(); } void GrPaint::addCoverageTextureProcessor(GrTexture* texture, const SkMatrix& matrix, const GrTextureParams& params) { - this->addCoverageFragmentProcessor(GrSimpleTextureEffect::Create(fProcDataManager, texture, matrix, - params))->unref(); + this->addCoverageFragmentProcessor(GrSimpleTextureEffect::Create(&fProcDataManager, texture, + matrix, params))->unref(); } bool GrPaint::isConstantBlendedColor(GrColor* color) const { |