OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Helper functions for GL. | 5 // Helper functions for GL. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_TESTS_GL_TEST_UTILS_H_ | 7 #ifndef GPU_COMMAND_BUFFER_TESTS_GL_TEST_UTILS_H_ |
8 #define GPU_COMMAND_BUFFER_TESTS_GL_TEST_UTILS_H_ | 8 #define GPU_COMMAND_BUFFER_TESTS_GL_TEST_UTILS_H_ |
9 | 9 |
10 #include <GLES2/gl2.h> | 10 #include <GLES2/gl2.h> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 GLint y, | 61 GLint y, |
62 GLsizei width, | 62 GLsizei width, |
63 GLsizei height, | 63 GLsizei height, |
64 GLint tolerance, | 64 GLint tolerance, |
65 const uint8_t* color, | 65 const uint8_t* color, |
66 const uint8_t* mask); | 66 const uint8_t* mask); |
67 | 67 |
68 // Uses ReadPixels to save an area of the current FBO/Backbuffer. | 68 // Uses ReadPixels to save an area of the current FBO/Backbuffer. |
69 static bool SaveBackbufferAsBMP(const char* filename, int width, int height); | 69 static bool SaveBackbufferAsBMP(const char* filename, int width, int height); |
70 | 70 |
71 static void DrawTextureQuad(const char* vertex_src, | 71 static void DrawTextureQuad(const GLenum texture_target, |
| 72 const char* vertex_src, |
72 const char* fragment_src, | 73 const char* fragment_src, |
73 const char* position_name, | 74 const char* position_name, |
74 const char* sampler_name); | 75 const char* sampler_name, |
| 76 const char* face_name); |
75 }; | 77 }; |
76 | 78 |
77 #endif // GPU_COMMAND_BUFFER_TESTS_GL_TEST_UTILS_H_ | 79 #endif // GPU_COMMAND_BUFFER_TESTS_GL_TEST_UTILS_H_ |
OLD | NEW |