| 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
|
|
|