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

Unified Diff: gpu/command_buffer/service/context_group.cc

Issue 301793003: During image destroy, delete textures only if we have a GL context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WIP - review comments addressed Created 6 years, 7 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: gpu/command_buffer/service/context_group.cc
diff --git a/gpu/command_buffer/service/context_group.cc b/gpu/command_buffer/service/context_group.cc
index ba0437bfd4e389158b767c2c1398b41c33eb4d55..a2b72afbd9d4ee522c32488e42f84da8ed3218d3 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -324,6 +324,11 @@ void ContextGroup::Destroy(GLES2Decoder* decoder, bool have_context) {
shader_manager_.reset();
}
+ if (image_manager_) {
+ image_manager_->Destroy(have_context);
reveman 2014/06/03 15:57:54 How is this not causing images that belong to anot
sohanjg 2014/06/04 06:39:02 Removed the destroy code and the optional creation
+ image_manager_ = NULL;
+ }
+
memory_tracker_ = NULL;
}

Powered by Google App Engine
This is Rietveld 408576698