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..68704598d76d9e3df004a137a3f88ba46f929b5c 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 (auto* rect : elements) { |
danakj
2017/02/28 15:33:30
const auto*?
vmpstr
2017/02/28 21:48:27
Done.
|
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 (auto* element : elements) { |
danakj
2017/02/28 15:33:29
const auto*?
vmpstr
2017/02/28 21:48:27
Done.
|
// Distance is the abs(z) value in view space. |
gvr::Vec3f element_position = GetTranslation(element->transform.to_world); |
float distance = |