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

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

Issue 2829653003: PROTOTYPE (incomplete): Add quad renderer and stub bits to handle security warnings. (Closed)
Patch Set: Created 3 years, 8 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
Index: chrome/browser/android/vr_shell/textured_element.cc
diff --git a/chrome/browser/android/vr_shell/textured_element.cc b/chrome/browser/android/vr_shell/textured_element.cc
new file mode 100644
index 0000000000000000000000000000000000000000..cdaf089aa2e3336bd1e498395e7d608eaa27d218
--- /dev/null
+++ b/chrome/browser/android/vr_shell/textured_element.cc
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/android/vr_shell/textured_element.h"
+
+namespace vr_shell {
+
+TexturedElement::TexturedElement() {
+}
+
+virtual TexturedElement::~TexturedElement() {
+}
+
+bool TexturedElement::Render(VrShellRenderer* renderer) const {
+ vr_shell_renderer_->GetGradientQuadRenderer()->Draw(
+ transform, rect->edge_color, rect->center_color,
+ rect->computed_opacity);
+ vr_shell_renderer_->GetTexturedQuadRenderer()->Flush();
+ break;
+ return true;
+}
+
+void TexturedElement::Draw() {
+ // TODO: Draw the element into its own personal Skia bitmap/surface, and
+ // create a GL texture from it. Should UITexture manage that?
+}
+
+} // namespace vr_shell

Powered by Google App Engine
This is Rietveld 408576698