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

Unified Diff: chrome/browser/android/vr_shell/vr_shell_gl.cc

Issue 2721553004: Remove auto raw pointer deduction from non-linux specific code. (Closed)
Patch Set: rebase Created 3 years, 10 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: chrome/browser/android/vr_shell/vr_shell_gl.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell_gl.cc b/chrome/browser/android/vr_shell/vr_shell_gl.cc
index b7e699248d55de307307762a6a2856de73e20b19..336d2b0472f4ce8c03bafe98d7629b20023598a8 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.cc
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.cc
@@ -833,7 +833,7 @@ void VrShellGl::DrawElements(
const gvr::Mat4f& view_proj_matrix,
const gvr::Mat4f& view_matrix,
const std::vector<const ContentRectangle*>& elements) {
- for (auto& rect : elements) {
+ for (const auto* rect : elements) {
gvr::Mat4f transform =
MatrixMul(view_proj_matrix, rect->transform.to_world);
@@ -888,7 +888,7 @@ std::vector<const ContentRectangle*> VrShellGl::GetElementsInDrawOrder(
std::vector<DistanceElementPair> zOrderedElementPairs;
zOrderedElementPairs.reserve(elements.size());
- for (const auto& element : elements) {
+ for (const auto* element : elements) {
// Distance is the abs(z) value in view space.
gvr::Vec3f element_position = GetTranslation(element->transform.to_world);
float distance =

Powered by Google App Engine
This is Rietveld 408576698