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

Unified Diff: services/ui/gles2/command_buffer_driver_manager.cc

Issue 2175243004: services/{ui,shell}: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 years, 5 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 | « services/ui/display/platform_screen_impl_ozone.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/gles2/command_buffer_driver_manager.cc
diff --git a/services/ui/gles2/command_buffer_driver_manager.cc b/services/ui/gles2/command_buffer_driver_manager.cc
index 0379bccedc6fbe8ba21cdbdac2513283eec7bcd5..d938c1af2c5d29306004206523fce1a2e8cd3aac 100644
--- a/services/ui/gles2/command_buffer_driver_manager.cc
+++ b/services/ui/gles2/command_buffer_driver_manager.cc
@@ -30,7 +30,7 @@ void CommandBufferDriverManager::RemoveDriver(CommandBufferDriver* driver) {
uint32_t CommandBufferDriverManager::GetUnprocessedOrderNum() const {
DCHECK(CalledOnValidThread());
uint32_t unprocessed_order_num = 0;
- for (auto& d : drivers_) {
+ for (auto* d : drivers_) {
unprocessed_order_num =
std::max(unprocessed_order_num, d->GetUnprocessedOrderNum());
}
@@ -40,7 +40,7 @@ uint32_t CommandBufferDriverManager::GetUnprocessedOrderNum() const {
uint32_t CommandBufferDriverManager::GetProcessedOrderNum() const {
DCHECK(CalledOnValidThread());
uint32_t processed_order_num = 0;
- for (auto& d : drivers_) {
+ for (auto* d : drivers_) {
processed_order_num =
std::max(processed_order_num, d->GetProcessedOrderNum());
}
« no previous file with comments | « services/ui/display/platform_screen_impl_ozone.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698