commit | b4460886905cc3b86987c6366a9721de77101111 | [log] [tgz] |
---|---|---|
author | Robert Phillips <robertphillips@google.com> | Thu Nov 17 14:43:51 2016 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Nov 17 20:47:18 2016 +0000 |
tree | 56d347bd093771a903a06e91cc697ee9621884e6 | |
parent | 684d7cef02121a42e217c0f63bdb4799d9ae4b53 [diff] [blame] |
Fix computation of texture size for approximately-fit deferred proxies For approximate-fit deferred proxies asserts were firing when the instantiated size was larger than the pre-computed exact-fit size. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4972 Change-Id: I879e16b86ab4d9ef9834163c24ccd6507fe4b94a Reviewed-on: https://skia-review.googlesource.com/4972 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrRenderTargetProxy.cpp b/src/gpu/GrRenderTargetProxy.cpp index 8eb335d..cb9b97a 100644 --- a/src/gpu/GrRenderTargetProxy.cpp +++ b/src/gpu/GrRenderTargetProxy.cpp
@@ -71,6 +71,6 @@ } // TODO: do we have enough information to improve this worst case estimate? - return GrSurface::ComputeSize(fDesc, fDesc.fSampleCnt+1, false); + return GrSurface::ComputeSize(fDesc, fDesc.fSampleCnt+1, false, SkBackingFit::kApprox == fFit); }