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

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

Issue 2738683002: WebVR compositor bypass via BrowserMain context + mailbox (Closed)
Patch Set: Less hacked up version Created 3 years, 9 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_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_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_gl.cc ('k') | chrome/browser/android/vr_shell/vr_shell_gpu_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698