diff options
author | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-30 20:38:36 +0000 |
---|---|---|
committer | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-30 20:38:36 +0000 |
commit | 2e0975dcc32fcac823d35e42514169e41a3a7fd3 (patch) | |
tree | b010300f234789716d26be9fd6b2b0348d999e4a /cc/test/test_in_process_context_provider.cc | |
parent | 6734e40aa3d7fc25ec790b9148ac61f8c4607a55 (diff) | |
download | chromium_src-2e0975dcc32fcac823d35e42514169e41a3a7fd3.zip chromium_src-2e0975dcc32fcac823d35e42514169e41a3a7fd3.tar.gz chromium_src-2e0975dcc32fcac823d35e42514169e41a3a7fd3.tar.bz2 |
cc: Delete GrContext resources when tab becomes invisible.
BUG=366519
Review URL: https://codereview.chromium.org/255593002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267324 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/test_in_process_context_provider.cc')
-rw-r--r-- | cc/test/test_in_process_context_provider.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/test/test_in_process_context_provider.cc b/cc/test/test_in_process_context_provider.cc index fbd3335..5005c06 100644 --- a/cc/test/test_in_process_context_provider.cc +++ b/cc/test/test_in_process_context_provider.cc @@ -115,6 +115,11 @@ bool TestInProcessContextProvider::IsContextLost() { return false; } void TestInProcessContextProvider::VerifyContexts() {} +void TestInProcessContextProvider::DeleteCachedResources() { + if (gr_context_) + gr_context_->freeGpuResources(); +} + bool TestInProcessContextProvider::DestroyedOnMainThread() { return false; } void TestInProcessContextProvider::SetLostContextCallback( |