aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrContext.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-10 10:14:35 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-10 10:14:35 +0000
commitcae27fed5e45e8899e56ece22b27e8958ffc0162 (patch)
treeffa32b028263d62da6fa581c6a62f5d9301a3e1d /include/gpu/GrContext.h
parent9e1ec1a52985cce9db3a0d0e8d448b82a32e70cb (diff)
Allow the resource cache to (indirectly) flush the InOrderDrawBuffer
R=bsalomon@google.com Author: robertphillips@google.com Review URL: https://chromiumcodereview.appspot.com/18466005 git-svn-id: http://skia.googlecode.com/svn/trunk@9949 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu/GrContext.h')
-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 9f3c9f6a59..09be3655a8 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -929,6 +929,12 @@ private:
bool swapRAndB,
const SkMatrix& matrix);
+ /**
+ * This callback allows the resource cache to callback into the GrContext
+ * when the cache is still overbudget after a purge.
+ */
+ static bool OverbudgetCB(void* data);
+
typedef GrRefCnt INHERITED;
};