The TextBlobCache needs the ability to trigger a flush because otherwise its entire...
authorjoshualitt <joshualitt@chromium.org>
Fri, 10 Apr 2015 14:01:30 +0000 (07:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 10 Apr 2015 14:01:30 +0000 (07:01 -0700)
commit0db6dfaeb2d1376ad393516fb22af7ecf62718fa
treebb4e19cebcedf94b9abd455c637712e5544beaa3
parentc5e0891029bed0f9619d67281a81f13983a9687b
The TextBlobCache needs the ability to trigger a flush because otherwise its entire budget can be used up, but it will not be able to free up any space due to blobs being stuck in the GrInOrderDrawBuffer.  This was causing a segfault.  After this CL the cache will try to purge, and then flush if it cannot purge enough.  It will not purge the most recent addition to the cache.

TBR=bsalomon@google.com
BUG=skia:

Review URL: https://codereview.chromium.org/1071333002
include/gpu/GrContext.h
src/gpu/GrContext.cpp
src/gpu/GrTextBlobCache.h