aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-04-10 07:01:30 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-10 07:01:30 -0700
commit0db6dfaeb2d1376ad393516fb22af7ecf62718fa (patch)
treebb4e19cebcedf94b9abd455c637712e5544beaa3 /include
parentc5e0891029bed0f9619d67281a81f13983a9687b (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrContext.h6
1 files changed, 6 insertions, 0 deletions
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;