diff options
author | Greg Daniel <egdaniel@google.com> | 2018-02-02 15:48:33 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-02 21:16:19 +0000 |
commit | fb3abcd8c335132b6ad8434a171516102bbf4495 (patch) | |
tree | a61244af55debc848e27716742f209dc29d63bc1 /src/gpu/GrResourceProvider.cpp | |
parent | 1d8726fbed346dd2b96d4ef3106262e3d3dee5f4 (diff) |
Update GrYUVGenerator to upload to texture vs use writePixels
Bug: skia:
Change-Id: I891ba25d2018008a32ef01608da9209cf2642b2e
Reviewed-on: https://skia-review.googlesource.com/102902
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrResourceProvider.cpp')
-rw-r--r-- | src/gpu/GrResourceProvider.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrResourceProvider.cpp b/src/gpu/GrResourceProvider.cpp index 9cf4e6c3e7..3800383581 100644 --- a/src/gpu/GrResourceProvider.cpp +++ b/src/gpu/GrResourceProvider.cpp @@ -113,6 +113,7 @@ static bool make_info(int w, int h, GrPixelConfig config, SkImageInfo* ii) { sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, + SkBackingFit fit, const GrMipLevel& mipLevel) { ASSERT_SINGLE_OWNER @@ -137,7 +138,7 @@ sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, // DDL TODO: remove this use of createInstantiatedProxy and convert it to a testing-only // method. sk_sp<GrTextureProxy> proxy = proxyProvider->createInstantiatedProxy(desc, - SkBackingFit::kExact, + fit, budgeted); if (proxy) { sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( |