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

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

Issue 2335643002: Add VR Shell animation classes and unit test. (Closed)
Patch Set: Add VR Shell animation classes and unit test. Created 4 years, 3 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_renderer.h" 5 #include "chrome/browser/android/vr_shell/vr_shell_renderer.h"
6 6
7 #include "chrome/browser/android/vr_shell/vr_util.h" 7 #include "chrome/browser/android/vr_shell/vr_gl_util.h"
8 #include "ui/gl/gl_bindings.h" 8 #include "ui/gl/gl_bindings.h"
9 9
10 namespace { 10 namespace {
11 11
12 #define RECTANGULAR_TEXTURE_BUFFER(left, right, bottom, top) \ 12 #define RECTANGULAR_TEXTURE_BUFFER(left, right, bottom, top) \
13 { left, bottom, left, top, right, bottom, left, top, right, top, right, \ 13 { left, bottom, left, top, right, bottom, left, top, right, top, right, \
14 bottom } 14 bottom }
15 15
16 static constexpr float kHalfHeight = 0.5f; 16 static constexpr float kHalfHeight = 0.5f;
17 static constexpr float kHalfWidth = 0.5f; 17 static constexpr float kHalfWidth = 0.5f;
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // segfaults. 253 // segfaults.
254 WebVrRenderer::~WebVrRenderer() = default; 254 WebVrRenderer::~WebVrRenderer() = default;
255 255
256 VrShellRenderer::VrShellRenderer() 256 VrShellRenderer::VrShellRenderer()
257 : textured_quad_renderer_(new TexturedQuadRenderer), 257 : textured_quad_renderer_(new TexturedQuadRenderer),
258 webvr_renderer_(new WebVrRenderer) {} 258 webvr_renderer_(new WebVrRenderer) {}
259 259
260 VrShellRenderer::~VrShellRenderer() = default; 260 VrShellRenderer::~VrShellRenderer() = default;
261 261
262 } // namespace vr_shell 262 } // namespace vr_shell
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_renderer.h ('k') | chrome/browser/android/vr_shell/vr_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698