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_ |