Prefer to recycle non-RT scratch textures that don't have pending IO
authorbsalomon <bsalomon@google.com>
Thu, 16 Oct 2014 02:04:14 +0000 (19:04 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 16 Oct 2014 02:04:14 +0000 (19:04 -0700)
commit000f829f14a9535a005082731af5de1526284c83
tree1701f79d828ccad9b42ffd57b32bafc7db80c33c
parentf2765410ba8adfe934b8d92e52ccc2a847934c61
Prefer to recycle non-RT scratch textures that don't have pending IO

BUG=skia:2889

Review URL: https://codereview.chromium.org/650283002
src/gpu/GrContext.cpp
src/gpu/GrResourceCache2.cpp
src/gpu/GrResourceCache2.h