diff options
author | joshualitt <joshualitt@chromium.org> | 2015-07-09 10:24:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-09 10:24:36 -0700 |
commit | 5f10b5c1b5744106312e24835d235b72fdba5802 (patch) | |
tree | 84b17f420f40ff9793f7d24285fa81412102bae7 /src/gpu/effects/GrSimpleTextureEffect.h | |
parent | cc29d26f5742449eb2a2bafa7bbb6ec5ee701aef (diff) |
More threading of GrProcessorDataManager
TBR=bsalomon@google.com
BUG=skia:
Review URL: https://codereview.chromium.org/1230813003
Diffstat (limited to 'src/gpu/effects/GrSimpleTextureEffect.h')
-rw-r--r-- | src/gpu/effects/GrSimpleTextureEffect.h | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/gpu/effects/GrSimpleTextureEffect.h b/src/gpu/effects/GrSimpleTextureEffect.h index 79e660f0a3..70d36224a5 100644 --- a/src/gpu/effects/GrSimpleTextureEffect.h +++ b/src/gpu/effects/GrSimpleTextureEffect.h @@ -23,26 +23,30 @@ class GrInvariantOutput; class GrSimpleTextureEffect : public GrSingleTextureEffect { public: /* unfiltered, clamp mode */ - static GrFragmentProcessor* Create(GrTexture* tex, + static GrFragmentProcessor* Create(GrProcessorDataManager* procDataManager, + GrTexture* tex, const SkMatrix& matrix, GrCoordSet coordSet = kLocal_GrCoordSet) { - return SkNEW_ARGS(GrSimpleTextureEffect, (tex, matrix, GrTextureParams::kNone_FilterMode, - coordSet)); + return SkNEW_ARGS(GrSimpleTextureEffect, (procDataManager, tex, matrix, + GrTextureParams::kNone_FilterMode, coordSet)); } /* clamp mode */ - static GrFragmentProcessor* Create(GrTexture* tex, + static GrFragmentProcessor* Create(GrProcessorDataManager* procDataManager, + GrTexture* tex, const SkMatrix& matrix, GrTextureParams::FilterMode filterMode, GrCoordSet coordSet = kLocal_GrCoordSet) { - return SkNEW_ARGS(GrSimpleTextureEffect, (tex, matrix, filterMode, coordSet)); + return SkNEW_ARGS(GrSimpleTextureEffect, (procDataManager, tex, matrix, filterMode, + coordSet)); } - static GrFragmentProcessor* Create(GrTexture* tex, + static GrFragmentProcessor* Create(GrProcessorDataManager* procDataManager, + GrTexture* tex, const SkMatrix& matrix, const GrTextureParams& p, GrCoordSet coordSet = kLocal_GrCoordSet) { - return SkNEW_ARGS(GrSimpleTextureEffect, (tex, matrix, p, coordSet)); + return SkNEW_ARGS(GrSimpleTextureEffect, (procDataManager, tex, matrix, p, coordSet)); } virtual ~GrSimpleTextureEffect() {} @@ -54,19 +58,21 @@ public: GrGLFragmentProcessor* createGLInstance() const override; private: - GrSimpleTextureEffect(GrTexture* texture, + GrSimpleTextureEffect(GrProcessorDataManager* procDataManager, + GrTexture* texture, const SkMatrix& matrix, GrTextureParams::FilterMode filterMode, GrCoordSet coordSet) - : GrSingleTextureEffect(texture, matrix, filterMode, coordSet) { + : GrSingleTextureEffect(procDataManager, texture, matrix, filterMode, coordSet) { this->initClassID<GrSimpleTextureEffect>(); } - GrSimpleTextureEffect(GrTexture* texture, + GrSimpleTextureEffect(GrProcessorDataManager* procDataManager, + GrTexture* texture, const SkMatrix& matrix, const GrTextureParams& params, GrCoordSet coordSet) - : GrSingleTextureEffect(texture, matrix, params, coordSet) { + : GrSingleTextureEffect(procDataManager, texture, matrix, params, coordSet) { this->initClassID<GrSimpleTextureEffect>(); } |