aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawTarget.h
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-14 19:31:39 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-14 19:31:39 +0000
commitff17584e1c15f68ccc296be517e8a6776a9ddabd (patch)
tree958bba76565d9a81b6034a9ce5852c821938631f /src/gpu/GrDrawTarget.h
parent706f6212c60dd8861a0ae922a77c455a08360aa3 (diff)
Attached ClipMaskManager to GPU resource freeing system
Diffstat (limited to 'src/gpu/GrDrawTarget.h')
-rw-r--r--src/gpu/GrDrawTarget.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
index c0e70dd0cf..bf6e41bb2e 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -545,6 +545,12 @@ public:
*/
virtual void clear(const GrIRect* rect, GrColor color) = 0;
+ /**
+ * Release any resources that are cached but not currently in use. This
+ * is intended to give an application some recourse when resources are low.
+ */
+ virtual void purgeResources() {};
+
////////////////////////////////////////////////////////////////////////////
/**