| Index: chrome/browser/android/vr_shell/vr_shell_gpu_renderer.h
|
| diff --git a/chrome/browser/android/vr_shell/vr_shell_gpu_renderer.h b/chrome/browser/android/vr_shell/vr_shell_gpu_renderer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..732f0c030e8b6cf95b6fe77b1e590fc7979ccb4d
|
| --- /dev/null
|
| +++ b/chrome/browser/android/vr_shell/vr_shell_gpu_renderer.h
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GPU_RENDERER_H_
|
| +#define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GPU_RENDERER_H_
|
| +
|
| +#include "gpu/command_buffer/client/gles2_interface.h"
|
| +
|
| +namespace gpu {
|
| +namespace gles2 {
|
| +class GLES2Interface;
|
| +}
|
| +}
|
| +
|
| +namespace vr_shell {
|
| +
|
| +class GpuRenderer final {
|
| + public:
|
| + explicit GpuRenderer(gpu::gles2::GLES2Interface*);
|
| + ~GpuRenderer();
|
| +
|
| + void DrawQuad(gpu::gles2::GLES2Interface*, GLuint textureHandle);
|
| +
|
| + private:
|
| + GLuint m_programHandle;
|
| + GLuint m_positionHandle;
|
| + GLuint m_texCoordHandle;
|
| + GLuint m_texUniformHandle;
|
| + GLuint m_vertexBuffer;
|
| +};
|
| +
|
| +} // namespace vr_shell
|
| +
|
| +#endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GPU_RENDERER_H_
|
|
|