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

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

Issue 2903363002: VR: Split off UI code into a library to ease future unit testing. (Closed)
Patch Set: More tweaks. Created 3 years, 6 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 2016 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_UI_ELEMENT_RENDERER_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENT_RENDERER_H_
7
8 #include "device/vr/vr_types.h"
9 #include "third_party/skia/include/core/SkColor.h"
10
11 namespace vr_shell {
12
13 // This is the interface offered by VrShell's GL system to UI elements.
14 class UiElementRenderer {
15 public:
16 virtual ~UiElementRenderer() {}
17
18 virtual void DrawTexturedQuad(int texture_data_handle,
19 const vr::Mat4f& view_proj_matrix,
20 const gfx::RectF& copy_rect,
21 float opacity) = 0;
22
23 virtual void DrawGradientQuad(const vr::Mat4f& view_proj_matrix,
24 const SkColor edge_color,
25 const SkColor center_color,
26 float opacity) = 0;
27 };
28
29 } // namespace vr_shell
30
31 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENT_RENDERER_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/BUILD.gn ('k') | chrome/browser/android/vr_shell/ui_elements/screen_dimmer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698