diff options
author | Robert Phillips <robertphillips@google.com> | 2017-05-23 07:43:48 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-23 12:45:21 +0000 |
commit | 92de631edd3eb9b3430332d1f1d566e903ea2ea9 (patch) | |
tree | 47117268c4a5fb3065ef4be5a21eb3c5c0b401b2 /src/gpu/GrTextureProducer.cpp | |
parent | 8ca3356290323ed7eb42611b867fff90c239eb39 (diff) |
Remove compressed (ETC1) texture support from Ganesh (take 2)
Reland of https://skia-review.googlesource.com/c/17456/ (Remove compressed (ETC1) texture support from Ganesh) but w/o removing third_part\etc1 files
TBR=bsalomon@google.com
Change-Id: I8ec4b7e3ddf47d213cb24c382731c050ffb8847f
Reviewed-on: https://skia-review.googlesource.com/17700
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@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; } |