From 0db6dfaeb2d1376ad393516fb22af7ecf62718fa Mon Sep 17 00:00:00 2001 From: joshualitt Date: Fri, 10 Apr 2015 07:01:30 -0700 Subject: 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 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/gpu/GrContext.h') diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index f6c3590336..38ad7bf410 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -787,6 +787,12 @@ private: */ static void OverBudgetCB(void* data); + /** + * A callback similar to the above for use by the TextBlobCache + * TODO move textblob draw calls below context so we can use the call above. + */ + static void TextBlobCacheOverBudgetCB(void* data); + // TODO see note on createTextContext friend class SkGpuDevice; -- cgit v1.2.3