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

Unified 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 side-by-side diff with in-line comments
Download patch
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_
« 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