Fix computation of texture size for approximately-fit deferred proxies
authorRobert Phillips <robertphillips@google.com>
Thu, 17 Nov 2016 19:43:51 +0000 (14:43 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 17 Nov 2016 20:47:18 +0000 (20:47 +0000)
commitb4460886905cc3b86987c6366a9721de77101111
tree56d347bd093771a903a06e91cc697ee9621884e6
parent684d7cef02121a42e217c0f63bdb4799d9ae4b53
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>
include/gpu/GrSurface.h
src/gpu/GrRenderTargetProxy.cpp
src/gpu/GrSurface.cpp
src/gpu/GrTextureProxy.cpp
src/gpu/GrTextureRenderTargetProxy.cpp
tests/ProxyTest.cpp