diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-04 17:35:13 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-04 17:35:13 +0000 |
commit | 1653d32148fca4a2061a272d5dd8a028dcf827a7 (patch) | |
tree | 438fab5999e61cb26db0ec536f1b95ddfa1be276 /gpu | |
parent | 8bea43f3f9b607adf6b25f92e69e7dbcba6e6992 (diff) | |
download | chromium_src-1653d32148fca4a2061a272d5dd8a028dcf827a7.zip chromium_src-1653d32148fca4a2061a272d5dd8a028dcf827a7.tar.gz chromium_src-1653d32148fca4a2061a272d5dd8a028dcf827a7.tar.bz2 |
Fix remaining uses of WeakPtr<T>'s operator T* conversion
These cases weren't caught by the automated pass and/or needed
to be solved in another way than using .get().
BUG=245942
TBR=darin@chromium.org
Review URL: https://codereview.chromium.org/16207005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203996 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/command_buffer/service/context_group.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/context_group.cc b/gpu/command_buffer/service/context_group.cc index 48ba2f3..b34f992 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()) { |