OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/android/vr_shell/textured_element.h" |
| 6 |
| 7 namespace vr_shell { |
| 8 |
| 9 TexturedElement::TexturedElement() { |
| 10 } |
| 11 |
| 12 virtual TexturedElement::~TexturedElement() { |
| 13 } |
| 14 |
| 15 bool TexturedElement::Render(VrShellRenderer* renderer) const { |
| 16 vr_shell_renderer_->GetGradientQuadRenderer()->Draw( |
| 17 transform, rect->edge_color, rect->center_color, |
| 18 rect->computed_opacity); |
| 19 vr_shell_renderer_->GetTexturedQuadRenderer()->Flush(); |
| 20 break; |
| 21 return true; |
| 22 } |
| 23 |
| 24 void TexturedElement::Draw() { |
| 25 // TODO: Draw the element into its own personal Skia bitmap/surface, and |
| 26 // create a GL texture from it. Should UITexture manage that? |
| 27 } |
| 28 |
| 29 } // namespace vr_shell |
OLD | NEW |