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

Side by Side 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698