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

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

Issue 16207005: Fix remaining uses of WeakPtr<T>'s operator T* conversion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
« no previous file with comments | « content/browser/download/download_browsertest.cc ('k') | media/audio/audio_output_dispatcher_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 48ba2f300860f8528117087e49ee8d8c08a453c3..b34f992d77b9ed553d55ce0a1fc42ae952ca8318 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -251,7 +251,8 @@ bool ContextGroup::HaveContexts() {
}
void ContextGroup::Destroy(GLES2Decoder* decoder, bool have_context) {
- decoders_.erase(std::remove(decoders_.begin(), decoders_.end(), decoder),
+ decoders_.erase(std::remove(decoders_.begin(), decoders_.end(),
+ decoder->AsWeakPtr()),
decoders_.end());
// If we still have contexts do nothing.
if (HaveContexts()) {
« no previous file with comments | « content/browser/download/download_browsertest.cc ('k') | media/audio/audio_output_dispatcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698