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

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

Issue 2907203002: VR: Soften the floor grid (Closed)
Patch Set: nit 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 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 switch (element.fill()) { 1255 switch (element.fill()) {
1256 case Fill::OPAQUE_GRADIENT: { 1256 case Fill::OPAQUE_GRADIENT: {
1257 vr_shell_renderer_->GetGradientQuadRenderer()->Draw( 1257 vr_shell_renderer_->GetGradientQuadRenderer()->Draw(
1258 transform, element.edge_color(), element.center_color(), 1258 transform, element.edge_color(), element.center_color(),
1259 element.computed_opacity()); 1259 element.computed_opacity());
1260 break; 1260 break;
1261 } 1261 }
1262 case Fill::GRID_GRADIENT: { 1262 case Fill::GRID_GRADIENT: {
1263 vr_shell_renderer_->GetGradientGridRenderer()->Draw( 1263 vr_shell_renderer_->GetGradientGridRenderer()->Draw(
1264 transform, element.edge_color(), element.center_color(), 1264 transform, element.edge_color(), element.center_color(),
1265 element.gridline_count(), element.computed_opacity()); 1265 element.grid_color(), element.gridline_count(),
1266 element.computed_opacity());
1266 break; 1267 break;
1267 } 1268 }
1268 case Fill::CONTENT: { 1269 case Fill::CONTENT: {
1269 gfx::RectF copy_rect(0, 0, 1, 1); 1270 gfx::RectF copy_rect(0, 0, 1, 1);
1270 vr_shell_renderer_->GetExternalTexturedQuadRenderer()->Draw( 1271 vr_shell_renderer_->GetExternalTexturedQuadRenderer()->Draw(
1271 content_texture_id_, transform, copy_rect, 1272 content_texture_id_, transform, copy_rect,
1272 element.computed_opacity()); 1273 element.computed_opacity());
1273 break; 1274 break;
1274 } 1275 }
1275 case Fill::SELF: { 1276 case Fill::SELF: {
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1599 // This assumes that the initial webvr_surface_size_ was set to the 1600 // This assumes that the initial webvr_surface_size_ was set to the
1600 // appropriate recommended render resolution as the default size during 1601 // appropriate recommended render resolution as the default size during
1601 // InitializeGl. Revisit if the initialization order changes. 1602 // InitializeGl. Revisit if the initialization order changes.
1602 device::mojom::VRDisplayInfoPtr info = 1603 device::mojom::VRDisplayInfoPtr info =
1603 device::GvrDelegate::CreateVRDisplayInfo(gvr_api_.get(), 1604 device::GvrDelegate::CreateVRDisplayInfo(gvr_api_.get(),
1604 webvr_surface_size_, device_id); 1605 webvr_surface_size_, device_id);
1605 browser_->RunVRDisplayInfoCallback(callback, &info); 1606 browser_->RunVRDisplayInfoCallback(callback, &info);
1606 } 1607 }
1607 1608
1608 } // namespace vr_shell 1609 } // 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