diff options
author | 2017-05-22 13:59:44 -0400 | |
---|---|---|
committer | 2017-05-22 18:02:52 +0000 | |
commit | ee26363aaae62db2a851f2873e2405a9cf7f995a (patch) | |
tree | 475d8255d76381852fa73e8b9732d60bdbfe9398 /src/gpu/GrTextureProducer.cpp | |
parent | 317a1857f80ffc18d591dd6b1ac0988184b1ed2b (diff) |
Remove compressed (ETC1) texture support from Ganesh
Change-Id: If4cf286df87ea87338aba47001d90a5fcc4f2667
Reviewed-on: https://skia-review.googlesource.com/17456
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrTextureProducer.cpp')
-rw-r--r-- | src/gpu/GrTextureProducer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gpu/GrTextureProducer.cpp b/src/gpu/GrTextureProducer.cpp index 75796b1aa4..b9e7dfc9b6 100644 --- a/src/gpu/GrTextureProducer.cpp +++ b/src/gpu/GrTextureProducer.cpp @@ -23,12 +23,10 @@ sk_sp<GrTextureProxy> GrTextureProducer::CopyOnGpu(GrContext* context, SkASSERT(!subset || !subset->isEmpty()); SkASSERT(context); - GrPixelConfig config = GrMakePixelConfigUncompressed(inputProxy->config()); - const SkRect dstRect = SkRect::MakeIWH(copyParams.fWidth, copyParams.fHeight); sk_sp<GrRenderTargetContext> copyRTC = context->makeDeferredRenderTargetContextWithFallback( - SkBackingFit::kExact, dstRect.width(), dstRect.height(), config, nullptr); + SkBackingFit::kExact, dstRect.width(), dstRect.height(), inputProxy->config(), nullptr); if (!copyRTC) { return nullptr; } |