diff options
author | 2015-07-10 07:26:21 -0700 | |
---|---|---|
committer | 2015-07-10 07:26:21 -0700 | |
commit | 5b4f05f709d2b45f1b61e613a4fd073c31fa66d8 (patch) | |
tree | 0453e242ad13d78f79770b89420aaf1aa782abcd /src/gpu/GrPaint.cpp | |
parent | 9764c40cd31c11c82686c8b8dbbeaea9fa4de05d (diff) |
Move GrProcessorDataManager to GrMemoryPool
TBR=bsalomon@google.com
BUG=skia:
Review URL: https://codereview.chromium.org/1225363002
Diffstat (limited to 'src/gpu/GrPaint.cpp')
-rw-r--r-- | src/gpu/GrPaint.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gpu/GrPaint.cpp b/src/gpu/GrPaint.cpp index f1533dd295..7427785588 100644 --- a/src/gpu/GrPaint.cpp +++ b/src/gpu/GrPaint.cpp @@ -16,7 +16,8 @@ GrPaint::GrPaint() : fAntiAlias(false) , fDither(false) - , fColor(GrColor_WHITE) { + , fColor(GrColor_WHITE) + , fProcDataManager(SkNEW(GrProcessorDataManager)) { } void GrPaint::setCoverageSetOpXPFactory(SkRegion::Op regionOp, bool invertCoverage) { @@ -24,26 +25,26 @@ void GrPaint::setCoverageSetOpXPFactory(SkRegion::Op regionOp, bool invertCovera } void GrPaint::addColorTextureProcessor(GrTexture* texture, const SkMatrix& matrix) { - this->addColorProcessor(GrSimpleTextureEffect::Create(&fProcDataManager, texture, + this->addColorProcessor(GrSimpleTextureEffect::Create(fProcDataManager, texture, matrix))->unref(); } void GrPaint::addCoverageTextureProcessor(GrTexture* texture, const SkMatrix& matrix) { - this->addCoverageProcessor(GrSimpleTextureEffect::Create(&fProcDataManager, texture, + this->addCoverageProcessor(GrSimpleTextureEffect::Create(fProcDataManager, texture, matrix))->unref(); } void GrPaint::addColorTextureProcessor(GrTexture* texture, const SkMatrix& matrix, const GrTextureParams& params) { - this->addColorProcessor(GrSimpleTextureEffect::Create(&fProcDataManager, texture, matrix, + this->addColorProcessor(GrSimpleTextureEffect::Create(fProcDataManager, texture, matrix, params))->unref(); } void GrPaint::addCoverageTextureProcessor(GrTexture* texture, const SkMatrix& matrix, const GrTextureParams& params) { - this->addCoverageProcessor(GrSimpleTextureEffect::Create(&fProcDataManager, texture, matrix, + this->addCoverageProcessor(GrSimpleTextureEffect::Create(fProcDataManager, texture, matrix, params))->unref(); } |