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

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

Issue 2903363002: VR: Split off UI code into a library to ease future unit testing. (Closed)
Patch Set: More tweaks. Created 3 years, 7 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 1390d68971842b49720efd4e499a5785ca175cb0..d5d3c862660d959d7e2b2a3befd62820dce558df 100644
--- a/chrome/browser/android/vr_shell/vr_shell_renderer.cc
+++ b/chrome/browser/android/vr_shell/vr_shell_renderer.cc
@@ -817,6 +817,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