diff options
author | Robert Phillips <robertphillips@google.com> | 2017-01-23 15:30:35 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-24 12:23:28 +0000 |
commit | bc7a4fb06780f9829b4b21470fe6f0503d2297cd (patch) | |
tree | d8a2460df05c73909530a3316cdc8b6192d5c55e /include/gpu/GrProcessor.h | |
parent | ad24145e41b473012a900818933291541e80815c (diff) |
Make GrYUVEffect take GrTextureProxies
This opens the door for swapping all the effects over to taking GrTextureProxies.
Change-Id: I3b03ba93a68f9945c9a8fee008fd170ed57616eb
Reviewed-on: https://skia-review.googlesource.com/7344
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/gpu/GrProcessor.h')
-rw-r--r-- | include/gpu/GrProcessor.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/gpu/GrProcessor.h b/include/gpu/GrProcessor.h index f933c9a9f7..a8e31f2c86 100644 --- a/include/gpu/GrProcessor.h +++ b/include/gpu/GrProcessor.h @@ -22,6 +22,8 @@ class GrContext; class GrCoordTransform; class GrInvariantOutput; +class GrTextureProvider; +class GrTextureProxy; /** * Used by processors to build their keys. It incorporates each per-processor key into a larger @@ -209,6 +211,12 @@ public: SkShader::TileMode tileXAndY = SkShader::kClamp_TileMode, GrShaderFlags visibility = kFragment_GrShaderFlag); + // MDB TODO: ultimately we shouldn't need the texProvider parameter + explicit TextureSampler(GrTextureProvider*, sk_sp<GrTextureProxy>, + GrSamplerParams::FilterMode = GrSamplerParams::kNone_FilterMode, + SkShader::TileMode tileXAndY = SkShader::kClamp_TileMode, + GrShaderFlags visibility = kFragment_GrShaderFlag); + void reset(GrTexture*, const GrSamplerParams&, GrShaderFlags visibility = kFragment_GrShaderFlag); void reset(GrTexture*, |