Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(710)

Unified Diff: webkit/common/gpu/context_provider_in_process.cc

Issue 226203004: Fix skia ganesh resources leak. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/common/gpu/context_provider_in_process.cc
diff --git a/webkit/common/gpu/context_provider_in_process.cc b/webkit/common/gpu/context_provider_in_process.cc
index e9d25584b09ae97ca194017dab3a3774731f4c5e..d71d6fa7ab18e64b804207538f748c69d92507a7 100644
--- a/webkit/common/gpu/context_provider_in_process.cc
+++ b/webkit/common/gpu/context_provider_in_process.cc
@@ -174,6 +174,8 @@ void ContextProviderInProcess::OnLostContext() {
}
if (!lost_context_callback_.is_null())
base::ResetAndReturn(&lost_context_callback_).Run();
+ if (gr_context_)
+ gr_context_->OnLostContext();
}
bool ContextProviderInProcess::DestroyedOnMainThread() {
« no previous file with comments | « content/common/gpu/client/context_provider_command_buffer.cc ('k') | webkit/common/gpu/grcontext_for_webgraphicscontext3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698