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

Side by Side Diff: chrome/browser/android/vr_shell/textured_element.h

Issue 2834543006: Hook up insecure content warnings for http webVR presentation. (Closed)
Patch Set: Add missing files 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 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURED_ELEMENT_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURED_ELEMENT_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/android/vr_shell/ui_element.h"
10
11 class SkSurface;
12
13 namespace vr_shell {
14
15 class UITexture;
cjgrant 2017/04/21 14:30:13 Should we rename this UiTexture to match UiElement
mthiesse 2017/04/21 15:05:12 Done.
16
17 class TexturedElement : public UiElement {
18 public:
19 explicit TexturedElement(int preferred_width);
cjgrant 2017/04/21 14:30:13 An element width is in meters; I think the paramet
mthiesse 2017/04/21 15:05:11 Done.
20 ~TexturedElement() override;
21
22 void Initialize() override;
23
24 // UiElement interface.
25 void Render(VrShellRenderer* renderer,
26 vr::Mat4f view_proj_matrix) const override;
27
28 protected:
29 virtual UITexture* GetTexture() const = 0;
30
31 private:
32 void Flush(SkSurface* surface);
33
34 gfx::Size size_;
acondor_ 2017/04/21 15:04:23 texture_size_ so that it's not confused with UIEle
mthiesse 2017/04/21 17:17:30 Done.
35 unsigned int texture_handle_;
cjgrant 2017/04/21 14:30:13 Possibly GLuint for clarity? This is what glGenTe
mthiesse 2017/04/21 15:05:11 Done.
36 int preferred_width_;
37
38 DISALLOW_COPY_AND_ASSIGN(TexturedElement);
39 };
40
41 } // namespace vr_shell
42
43 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURED_ELEMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698