diff options
author | robertphillips <robertphillips@google.com> | 2015-05-14 05:24:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-14 05:24:53 -0700 |
commit | eea2ff72014d985166e8c2aab3537bd32591900a (patch) | |
tree | 3746ffafa96673abcd784817c78c1c1841ecd823 /include/gpu | |
parent | c30806f9f16e6400036fdc25842b73a9d2a41cb3 (diff) |
Revert of Refactor GrBufferAllocPools to use resource cache (patchset #9 id:160001 of https://codereview.chromium.org/1139753002/)
Reason for revert:
Perf Regression for some bot/skp combinations
Original issue's description:
> Refactor GrBufferAllocPools to use resource cache
>
> Committed: https://skia.googlesource.com/skia/+/c5f1c5414fc8f73cbefadcc1b24ec794056fa203
TBR=bsalomon@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Review URL: https://codereview.chromium.org/1129863008
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrTextureProvider.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gpu/GrTextureProvider.h b/include/gpu/GrTextureProvider.h index 10b66c0b3c..3f8c760f9b 100644 --- a/include/gpu/GrTextureProvider.h +++ b/include/gpu/GrTextureProvider.h @@ -160,12 +160,12 @@ protected: GrGpu* gpu() { return fGpu; } const GrGpu* gpu() const { return fGpu; } +private: bool isAbandoned() const { SkASSERT(SkToBool(fGpu) == SkToBool(fCache)); return !SkToBool(fCache); } -private: GrResourceCache* fCache; GrGpu* fGpu; }; |