diff options
author | 2012-05-14 19:31:39 +0000 | |
---|---|---|
committer | 2012-05-14 19:31:39 +0000 | |
commit | ff17584e1c15f68ccc296be517e8a6776a9ddabd (patch) | |
tree | 958bba76565d9a81b6034a9ce5852c821938631f /src/gpu/GrDrawTarget.h | |
parent | 706f6212c60dd8861a0ae922a77c455a08360aa3 (diff) |
Attached ClipMaskManager to GPU resource freeing system
http://codereview.appspot.com/6208058/
git-svn-id: http://skia.googlecode.com/svn/trunk@3927 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrDrawTarget.h')
-rw-r--r-- | src/gpu/GrDrawTarget.h | 6 |
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() {}; + //////////////////////////////////////////////////////////////////////////// /** |