summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/context_group.h
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-01 22:41:16 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-01 22:41:16 +0000
commitd304cbdeccf3db7330c09cb218096a45a2bdc746 (patch)
treed0b939398f1fe3f4beb1def5fbede824d1dea94d /gpu/command_buffer/service/context_group.h
parente7f7509f4ab3672f61e6fc5ec6b5ce0b5eefb4a8 (diff)
downloadchromium_src-d304cbdeccf3db7330c09cb218096a45a2bdc746.zip
chromium_src-d304cbdeccf3db7330c09cb218096a45a2bdc746.tar.gz
chromium_src-d304cbdeccf3db7330c09cb218096a45a2bdc746.tar.bz2
Free the resources used by a context group.
TEST=unit tests BUG=none Review URL: http://codereview.chromium.org/2880013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51441 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/context_group.h')
-rw-r--r--gpu/command_buffer/service/context_group.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/context_group.h b/gpu/command_buffer/service/context_group.h
index 477983f..21fc061 100644
--- a/gpu/command_buffer/service/context_group.h
+++ b/gpu/command_buffer/service/context_group.h
@@ -35,6 +35,9 @@ class ContextGroup {
// This should only be called by GLES2Decoder.
bool Initialize();
+ // Destroys all the resources. MUST be called before destruction.
+ void Destroy(bool have_context);
+
uint32 max_vertex_attribs() const {
return max_vertex_attribs_;
}