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

Unified Diff: gpu/config/gpu_control_list.cc

Issue 16293004: Update gpu/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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/config/gpu_control_list.cc
diff --git a/gpu/config/gpu_control_list.cc b/gpu/config/gpu_control_list.cc
index f5139db0e9cfbce19f998a8ea9a04f070309461a..67e3368f5dcdb3f6cab4d74753015d2d839352e7 100644
--- a/gpu/config/gpu_control_list.cc
+++ b/gpu/config/gpu_control_list.cc
@@ -758,7 +758,7 @@ GpuControlList::GpuControlListEntry::GetEntryFromValue(
}
ScopedGpuControlListEntry exception(GetEntryFromValue(
exception_value, false, feature_map, supports_feature_type_all));
- if (exception == NULL) {
+ if (exception.get() == NULL) {
LOG(WARNING) << "Malformed exceptions entry " << entry->id();
return NULL;
}
@@ -1225,7 +1225,7 @@ bool GpuControlList::LoadList(const base::DictionaryValue& parsed_json,
DCHECK(browser_version_support == kSupported);
ScopedGpuControlListEntry entry(GpuControlListEntry::GetEntryFromValue(
list_item, true, feature_map_, supports_feature_type_all_));
- if (entry == NULL)
+ if (entry.get() == NULL)
return false;
if (entry->id() > max_entry_id)
max_entry_id = entry->id();
@@ -1305,7 +1305,7 @@ void GpuControlList::GetDecisionEntries(
void GpuControlList::GetReasons(base::ListValue* problem_list) const {
DCHECK(problem_list);
for (size_t i = 0; i < active_entries_.size(); ++i) {
- GpuControlListEntry* entry = active_entries_[i];
+ GpuControlListEntry* entry = active_entries_[i].get();
if (entry->disabled())
continue;
base::DictionaryValue* problem = new base::DictionaryValue();
« no previous file with comments | « gpu/command_buffer/tests/gl_gpu_memory_buffer_unittests.cc ('k') | gpu/config/gpu_control_list_entry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698