summaryrefslogtreecommitdiffstats
path: root/webkit/common/gpu/context_provider_in_process.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/common/gpu/context_provider_in_process.cc')
-rw-r--r--webkit/common/gpu/context_provider_in_process.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/common/gpu/context_provider_in_process.cc b/webkit/common/gpu/context_provider_in_process.cc
index d71d6fa..3785d38a 100644
--- a/webkit/common/gpu/context_provider_in_process.cc
+++ b/webkit/common/gpu/context_provider_in_process.cc
@@ -164,6 +164,13 @@ void ContextProviderInProcess::VerifyContexts() {
OnLostContext();
}
+void ContextProviderInProcess::DeleteCachedResources() {
+ DCHECK(context_thread_checker_.CalledOnValidThread());
+
+ if (gr_context_)
+ gr_context_->FreeGpuResources();
+}
+
void ContextProviderInProcess::OnLostContext() {
DCHECK(context_thread_checker_.CalledOnValidThread());
{