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

Unified Diff: chrome/browser/android/vr_shell/vr_shell_renderer.cc

Issue 2923043003: VR: Split off UI code into a library to ease future unit testing. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_renderer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell_renderer.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell_renderer.cc b/chrome/browser/android/vr_shell/vr_shell_renderer.cc
index 6c5ebe130ea549d94ba97bc806c4e2907370a2d7..df3705c8e8d3be368e9167dbc0eb39ff8181ea05 100644
--- a/chrome/browser/android/vr_shell/vr_shell_renderer.cc
+++ b/chrome/browser/android/vr_shell/vr_shell_renderer.cc
@@ -806,6 +806,22 @@ VrShellRenderer::VrShellRenderer()
VrShellRenderer::~VrShellRenderer() = default;
+void VrShellRenderer::DrawTexturedQuad(int texture_data_handle,
+ const vr::Mat4f& view_proj_matrix,
+ const gfx::RectF& copy_rect,
+ float opacity) {
+ GetTexturedQuadRenderer()->AddQuad(texture_data_handle, view_proj_matrix,
+ copy_rect, opacity);
+}
+
+void VrShellRenderer::DrawGradientQuad(const vr::Mat4f& view_proj_matrix,
+ const SkColor edge_color,
+ const SkColor center_color,
+ float opacity) {
+ GetGradientQuadRenderer()->Draw(view_proj_matrix, edge_color, center_color,
+ opacity);
+}
+
ExternalTexturedQuadRenderer*
VrShellRenderer::GetExternalTexturedQuadRenderer() {
Flush();
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_renderer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698