diff options
author | bsalomon <bsalomon@google.com> | 2014-10-08 11:21:33 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-08 11:21:33 -0700 |
commit | 0f9e8a720c583956ed6e291d018f40fa624bb40d (patch) | |
tree | 873cd17784e2f6859258ddc146df4a8362479fae /src/gpu/GrContext.cpp | |
parent | ddb5eca198736a320b8318eb5f6dfd6d0b6ad1d3 (diff) | |
download | skia-0f9e8a720c583956ed6e291d018f40fa624bb40d.tar.gz |
Revert of Use presence of a content key as non-scratch indicator (patchset #5 id:80001 of https://codereview.chromium.org/639873002/)
Reason for revert:
breaking nanobench on ubuntu
Original issue's description:
> Use presence of a content key as non-scratch indicator
>
> BUG=skia:2889
>
> Committed: https://skia.googlesource.com/skia/+/9eefe0851eeaa8ded05b4774ebcb38ed201d5dbf
TBR=robertphillips@google.com
NOTREECHECKS=true
NOTRY=true
BUG=skia:2889
Review URL: https://codereview.chromium.org/642493003
Diffstat (limited to 'src/gpu/GrContext.cpp')
-rwxr-xr-x | src/gpu/GrContext.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index 6ece67fd1..a722eed88 100755 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -6,6 +6,7 @@ * found in the LICENSE file. */ + #include "GrContext.h" #include "effects/GrConfigConversionEffect.h" @@ -443,6 +444,7 @@ GrTexture* GrContext::createNewScratchTexture(const GrTextureDesc& desc) { return NULL; } fResourceCache->addResource(texture->getScratchKey(), texture); + texture->fIsScratch = GrGpuResource::kYes_IsScratch; return texture; } |