OLD | NEW |
(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_VR_SHELL_GPU_RENDERER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GPU_RENDERER_H_ |
| 7 |
| 8 #include "gpu/command_buffer/client/gles2_interface.h" |
| 9 |
| 10 namespace gpu { |
| 11 namespace gles2 { |
| 12 class GLES2Interface; |
| 13 } |
| 14 } |
| 15 |
| 16 namespace vr_shell { |
| 17 |
| 18 class GpuRenderer final { |
| 19 public: |
| 20 explicit GpuRenderer(gpu::gles2::GLES2Interface*); |
| 21 ~GpuRenderer(); |
| 22 |
| 23 void DrawQuad(gpu::gles2::GLES2Interface*, GLuint textureHandle); |
| 24 |
| 25 private: |
| 26 GLuint m_programHandle; |
| 27 GLuint m_positionHandle; |
| 28 GLuint m_texCoordHandle; |
| 29 GLuint m_texUniformHandle; |
| 30 GLuint m_vertexBuffer; |
| 31 }; |
| 32 |
| 33 } // namespace vr_shell |
| 34 |
| 35 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GPU_RENDERER_H_ |
OLD | NEW |