diff options
author | robertphillips <robertphillips@google.com> | 2016-10-04 05:30:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-04 05:30:20 -0700 |
commit | ee843b2ae4d75748d8bc323287f0c310fad548a7 (patch) | |
tree | d77d56b16702800f5fb489531690dd27278a8bf2 /include/gpu/GrGpuResource.h | |
parent | 2ebd0c80a2a9d90a2c2c653f40a2a7205bd2d31b (diff) |
Revert of Make GrResourceCache dynamically change between LRU and random replacement strategies. (patchset #8 id:140001 of https://codereview.chromium.org/2321563006/ )
Reason for revert:
Causing problems on Mac & Windows bots.
Original issue's description:
> Make GrResourceCache dynamically change between LRU and random replacement strategies.
>
> Random performs significantly better when each frame exceeds the budget by a small margin whereas LRU has worst case behavior.
>
> The decision of which to use is made based on the history from a few frames of the ratio of total unique key cache misses to unique key cache misses of resources purged in the last 2 frames.
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2321563006
>
> Committed: https://skia.googlesource.com/skia/+/0f147ac2ae575bbad3515a526f13700bc5c8e9d7
TBR=bsalomon@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Review-Url: https://codereview.chromium.org/2386993004
Diffstat (limited to 'include/gpu/GrGpuResource.h')
-rw-r--r-- | include/gpu/GrGpuResource.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h index 6f8280acb2..364a886408 100644 --- a/include/gpu/GrGpuResource.h +++ b/include/gpu/GrGpuResource.h @@ -58,7 +58,6 @@ public: this->validate(); if (!(--fRefCnt)) { - SkASSERT(fRefCnt >= 0); if (!static_cast<const DERIVED*>(this)->notifyRefCountIsZero()) { return; } @@ -118,7 +117,6 @@ private: private: void didRemoveRefOrPendingIO(CntType cntTypeRemoved) const { - this->validate(); if (0 == fPendingReads && 0 == fPendingWrites && 0 == fRefCnt) { static_cast<const DERIVED*>(this)->notifyAllCntsAreZero(cntTypeRemoved); } |