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

Unified Diff: ui/wayland/demos/util.h

Issue 17265006: wayland patch for inspection Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
« no previous file with comments | « ui/wayland/demos/sample.cc ('k') | ui/wayland/demos/util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wayland/demos/util.h
diff --git a/ui/wayland/demos/util.h b/ui/wayland/demos/util.h
new file mode 100644
index 0000000000000000000000000000000000000000..098ea088c4cfc8efdd68e2feb4a2d75f5b3dff37
--- /dev/null
+++ b/ui/wayland/demos/util.h
@@ -0,0 +1,20 @@
+// Copyright (c) 2011 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 UI_WAYLAND_DEMOS_UTIL_H_
+#define UI_WAYLAND_DEMOS_UTIL_H_
+
+#include <GL/gl.h>
+
+namespace util {
+
+// Compiles a shader of |type| with the source code in |source|.
+GLuint CompileShader(GLenum type, const GLchar* source);
+
+// Creates a FBO with the given dimensions and stores the FBO id in |fbo|.
+void CreateFBO(GLuint width, GLuint height, GLuint* fbo, GLuint color_texture);
+
+} // namespace util
+
+#endif // UI_WAYLAND_DEMOS_UTIL_H_
« no previous file with comments | « ui/wayland/demos/sample.cc ('k') | ui/wayland/demos/util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698