aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPipelineBuilder.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-07-10 07:26:21 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-10 07:26:21 -0700
commit5b4f05f709d2b45f1b61e613a4fd073c31fa66d8 (patch)
tree0453e242ad13d78f79770b89420aaf1aa782abcd /src/gpu/GrPipelineBuilder.h
parent9764c40cd31c11c82686c8b8dbbeaea9fa4de05d (diff)
Move GrProcessorDataManager to GrMemoryPool
TBR=bsalomon@google.com BUG=skia: Review URL: https://codereview.chromium.org/1225363002
Diffstat (limited to 'src/gpu/GrPipelineBuilder.h')
-rw-r--r--src/gpu/GrPipelineBuilder.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gpu/GrPipelineBuilder.h b/src/gpu/GrPipelineBuilder.h
index 22ad865f41..af98c3676f 100644
--- a/src/gpu/GrPipelineBuilder.h
+++ b/src/gpu/GrPipelineBuilder.h
@@ -84,26 +84,26 @@ public:
* Creates a GrSimpleTextureEffect that uses local coords as texture coordinates.
*/
void addColorTextureProcessor(GrTexture* texture, const SkMatrix& matrix) {
- this->addColorProcessor(GrSimpleTextureEffect::Create(&fProcDataManager, texture,
+ this->addColorProcessor(GrSimpleTextureEffect::Create(fProcDataManager, texture,
matrix))->unref();
}
void addCoverageTextureProcessor(GrTexture* texture, const SkMatrix& matrix) {
- this->addCoverageProcessor(GrSimpleTextureEffect::Create(&fProcDataManager, texture,
+ this->addCoverageProcessor(GrSimpleTextureEffect::Create(fProcDataManager, texture,
matrix))->unref();
}
void 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 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();
}
@@ -396,7 +396,8 @@ public:
void setClip(const GrClip& clip) { fClip = clip; }
const GrClip& clip() const { return fClip; }
- GrProcessorDataManager* getProcessorDataManager() { return &fProcDataManager; }
+ GrProcessorDataManager* getProcessorDataManager() { return fProcDataManager.get(); }
+ const GrProcessorDataManager* processorDataManager() const { return fProcDataManager.get(); }
private:
// Calculating invariant color / coverage information is expensive, so we partially cache the
@@ -438,7 +439,7 @@ private:
typedef SkSTArray<4, GrFragmentStage> FragmentStageArray;
- GrProcessorDataManager fProcDataManager;
+ SkAutoTUnref<GrProcessorDataManager> fProcDataManager;
SkAutoTUnref<GrRenderTarget> fRenderTarget;
uint32_t fFlags;
GrStencilSettings fStencilSettings;