diff options
author | Greg Daniel <egdaniel@google.com> | 2018-01-04 10:27:29 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-04 16:12:33 +0000 |
commit | 1445da6c03c7ce6a3039bd63498e1179a320722f (patch) | |
tree | 6092d32de7e9c6623da1c2866277610729c9f4e2 /src/gpu/GrYUVProvider.h | |
parent | 48ef021df81795f15746b3ca1d80339bf9a6c2d0 (diff) |
Removed unused useCache param in GrYUVProvider
The function was only ever called in one spot and always passed in true
for this value.
Bug: skia:
Change-Id: Ie22c01d13da5e34664cb67b7b1c900da6d92bb45
Reviewed-on: https://skia-review.googlesource.com/90402
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrYUVProvider.h')
-rw-r--r-- | src/gpu/GrYUVProvider.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gpu/GrYUVProvider.h b/src/gpu/GrYUVProvider.h index 372a26a340..5f9cccea18 100644 --- a/src/gpu/GrYUVProvider.h +++ b/src/gpu/GrYUVProvider.h @@ -30,15 +30,14 @@ public: /** * On success, this returns a texture proxy that has converted the YUV data from the provider - * into a form that is supported by the GPU (typically transformed into RGB). If useCache - * is true, then the texture will automatically have a key added, so it can be retrieved - * from the cache (assuming it is requested by a provider w/ the same genID). If srcColorSpace - * and dstColorSpace are specified, then a color conversion from src to dst will be applied to - * the pixels. + * into a form that is supported by the GPU (typically transformed into RGB). The texture will + * automatically have a key added, so it can be retrieved from the cache (assuming it is + * requested by a provider w/ the same genID). If srcColorSpace and dstColorSpace are + * specified, then a color conversion from src to dst will be applied to the pixels. * * On failure (e.g. the provider had no data), this returns NULL. */ - sk_sp<GrTextureProxy> refAsTextureProxy(GrContext*, const GrSurfaceDesc&, bool useCache, + sk_sp<GrTextureProxy> refAsTextureProxy(GrContext*, const GrSurfaceDesc&, const SkColorSpace* srcColorSpace, const SkColorSpace* dstColorSpace); |