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

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

Issue 2668093002: VrShell background implemented in JS. (Closed)
Patch Set: Fixed tests 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 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 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void GvrInit(gvr_context* gvr_api); 97 void GvrInit(gvr_context* gvr_api);
98 void InitializeRenderer(); 98 void InitializeRenderer();
99 void DrawFrame(); 99 void DrawFrame();
100 void DrawVrShell(const gvr::Mat4f& head_pose, gvr::Frame &frame); 100 void DrawVrShell(const gvr::Mat4f& head_pose, gvr::Frame &frame);
101 void DrawUiView(const gvr::Mat4f* head_pose, 101 void DrawUiView(const gvr::Mat4f* head_pose,
102 const std::vector<const ContentRectangle*>& elements, 102 const std::vector<const ContentRectangle*>& elements,
103 const gvr::Sizei& render_size, int viewport_offset); 103 const gvr::Sizei& render_size, int viewport_offset);
104 void DrawElements(const gvr::Mat4f& render_matrix, 104 void DrawElements(const gvr::Mat4f& render_matrix,
105 const std::vector<const ContentRectangle*>& elements); 105 const std::vector<const ContentRectangle*>& elements);
106 void DrawCursor(const gvr::Mat4f& render_matrix); 106 void DrawCursor(const gvr::Mat4f& render_matrix);
107 void DrawBackground(const gvr::Mat4f& render_matrix);
108 void DrawWebVr(); 107 void DrawWebVr();
109 bool WebVrPoseByteIsValid(int pose_index_byte); 108 bool WebVrPoseByteIsValid(int pose_index_byte);
110 109
111 void UpdateController(const gvr::Vec3f& forward_vector); 110 void UpdateController(const gvr::Vec3f& forward_vector);
112 void SendEventsToTarget(InputTarget input_target, int pixel_x, 111 void SendEventsToTarget(InputTarget input_target, int pixel_x,
113 int pixel_y); 112 int pixel_y);
114 void SendGesture(InputTarget input_target, 113 void SendGesture(InputTarget input_target,
115 std::unique_ptr<blink::WebInputEvent> event); 114 std::unique_ptr<blink::WebInputEvent> event);
116 115
117 void OnUIFrameAvailable(); 116 void OnUIFrameAvailable();
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 uint16_t last_frame_index_ = -1; 199 uint16_t last_frame_index_ = -1;
201 200
202 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; 201 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_;
203 202
204 DISALLOW_COPY_AND_ASSIGN(VrShellGl); 203 DISALLOW_COPY_AND_ASSIGN(VrShellGl);
205 }; 204 };
206 205
207 } // namespace vr_shell 206 } // namespace vr_shell
208 207
209 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ 208 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_math.h ('k') | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698