Revert of Make GrResourceCache dynamically change between LRU and random replacement...
authorrobertphillips <robertphillips@google.com>
Tue, 4 Oct 2016 12:30:20 +0000 (05:30 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 4 Oct 2016 12:30:20 +0000 (05:30 -0700)
commitee843b2ae4d75748d8bc323287f0c310fad548a7
treed77d56b16702800f5fb489531690dd27278a8bf2
parent2ebd0c80a2a9d90a2c2c653f40a2a7205bd2d31b
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
include/gpu/GrGpuResource.h
src/gpu/GrDrawingManager.cpp
src/gpu/GrDrawingManager.h
src/gpu/GrResourceCache.cpp
src/gpu/GrResourceCache.h