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

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

Issue 2898953002: Remove SupportsWeakPtr inheritance from GLES2Decoder (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.h » ('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 0a622eb9a33a80c43ddaa98ebb125ea0bc451402..df450df2cc31ebc130cde2572acf753a4dd61a34 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -139,7 +139,7 @@ bool ContextGroup::Initialize(GLES2Decoder* decoder,
return false;
}
// If we've already initialized the group just add the context.
- decoders_.push_back(base::AsWeakPtr<GLES2Decoder>(decoder));
+ decoders_.push_back(decoder->AsWeakPtr());
return true;
}
@@ -454,7 +454,7 @@ bool ContextGroup::Initialize(GLES2Decoder* decoder,
return false;
}
- decoders_.push_back(base::AsWeakPtr<GLES2Decoder>(decoder));
+ decoders_.push_back(decoder->AsWeakPtr());
return true;
}
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698