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

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

Issue 16136005: Update remaining files to use WeakPtr<T>::get() instead of "operator T*" (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
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 1b325ef20eaf51e67471be016012b0abc6aa5800..48ba2f300860f8528117087e49ee8d8c08a453c3 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -239,7 +239,7 @@ bool ContextGroup::Initialize(
namespace {
bool IsNull(const base::WeakPtr<gles2::GLES2Decoder>& decoder) {
- return !decoder;
+ return !decoder.get();
}
} // namespace anonymous
@@ -313,7 +313,7 @@ uint32 ContextGroup::GetMemRepresented() const {
void ContextGroup::LoseContexts(GLenum reset_status) {
for (size_t ii = 0; ii < decoders_.size(); ++ii) {
- if (decoders_[ii]) {
+ if (decoders_[ii].get()) {
decoders_[ii]->LoseContext(reset_status);
}
}

Powered by Google App Engine
This is Rietveld 408576698