diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-07 17:43:01 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-07 17:43:01 +0000 |
commit | 94bd822801049e94ea808ba45c635444f842deb5 (patch) | |
tree | 9d99adfd0b558a51a4a522ed1bb17b2722613b43 /src/gpu | |
parent | 372a9c3f443bdcc60b0e0c17f028461eaaed5fd1 (diff) |
Revert of Discard scratch render targets before reusing them. (https://codereview.chromium.org/225183012/)
Reason for revert:
Asserts in debug.
Original issue's description:
> Discard scratch render targets before reusing them.
>
> R=robertphillips@google.com
>
> Committed: http://code.google.com/p/skia/source/detail?r=14075
R=robertphillips@google.com
TBR=robertphillips@google.com
NOTREECHECKS=true
NOTRY=true
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/224963014
git-svn-id: http://skia.googlecode.com/svn/trunk@14077 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/GrContext.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index 8084557c93..89548ab5c9 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -457,11 +457,6 @@ GrTexture* GrContext::lockAndRefScratchTexture(const GrTextureDesc& inDesc, Scra // Ensure we have exclusive access to the texture so future 'find' calls don't return it resource = fTextureCache->find(key, GrResourceCache::kHide_OwnershipFlag); if (NULL != resource) { - // If the scratch texture is a render target, discard its contents. - GrRenderTarget* rt = static_cast<GrTexture*>(resource)->asRenderTarget(); - if (NULL != rt) { - rt->discard(); - } resource->ref(); break; } |