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

Side by Side Diff: chrome/browser/android/vr_shell/vr_shell_gl.cc

Issue 2915143002: VR: Soften the floor grid (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/vr_shell/vr_shell_gl.h" 5 #include "chrome/browser/android/vr_shell/vr_shell_gl.h"
6 6
7 #include <chrono> 7 #include <chrono>
8 #include <limits> 8 #include <limits>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 switch (element.fill()) { 1254 switch (element.fill()) {
1255 case Fill::OPAQUE_GRADIENT: { 1255 case Fill::OPAQUE_GRADIENT: {
1256 vr_shell_renderer_->GetGradientQuadRenderer()->Draw( 1256 vr_shell_renderer_->GetGradientQuadRenderer()->Draw(
1257 transform, element.edge_color(), element.center_color(), 1257 transform, element.edge_color(), element.center_color(),
1258 element.computed_opacity()); 1258 element.computed_opacity());
1259 break; 1259 break;
1260 } 1260 }
1261 case Fill::GRID_GRADIENT: { 1261 case Fill::GRID_GRADIENT: {
1262 vr_shell_renderer_->GetGradientGridRenderer()->Draw( 1262 vr_shell_renderer_->GetGradientGridRenderer()->Draw(
1263 transform, element.edge_color(), element.center_color(), 1263 transform, element.edge_color(), element.center_color(),
1264 element.gridline_count(), element.computed_opacity()); 1264 element.grid_color(), element.gridline_count(),
1265 element.computed_opacity());
1265 break; 1266 break;
1266 } 1267 }
1267 case Fill::CONTENT: { 1268 case Fill::CONTENT: {
1268 gfx::RectF copy_rect(0, 0, 1, 1); 1269 gfx::RectF copy_rect(0, 0, 1, 1);
1269 vr_shell_renderer_->GetExternalTexturedQuadRenderer()->Draw( 1270 vr_shell_renderer_->GetExternalTexturedQuadRenderer()->Draw(
1270 content_texture_id_, transform, copy_rect, 1271 content_texture_id_, transform, copy_rect,
1271 element.computed_opacity()); 1272 element.computed_opacity());
1272 break; 1273 break;
1273 } 1274 }
1274 case Fill::SELF: { 1275 case Fill::SELF: {
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1598 // This assumes that the initial webvr_surface_size_ was set to the 1599 // This assumes that the initial webvr_surface_size_ was set to the
1599 // appropriate recommended render resolution as the default size during 1600 // appropriate recommended render resolution as the default size during
1600 // InitializeGl. Revisit if the initialization order changes. 1601 // InitializeGl. Revisit if the initialization order changes.
1601 device::mojom::VRDisplayInfoPtr info = 1602 device::mojom::VRDisplayInfoPtr info =
1602 device::GvrDelegate::CreateVRDisplayInfo(gvr_api_.get(), 1603 device::GvrDelegate::CreateVRDisplayInfo(gvr_api_.get(),
1603 webvr_surface_size_, device_id); 1604 webvr_surface_size_, device_id);
1604 browser_->RunVRDisplayInfoCallback(callback, &info); 1605 browser_->RunVRDisplayInfoCallback(callback, &info);
1605 } 1606 }
1606 1607
1607 } // namespace vr_shell 1608 } // namespace vr_shell
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc ('k') | chrome/browser/android/vr_shell/vr_shell_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698