OLD | NEW |
(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_ |
OLD | NEW |