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

Side by Side Diff: gpu/command_buffer/tests/gl_test_utils.h

Issue 2656563002: Support cube map dest target for CopyTextureCHROMIUM extension (Closed)
Patch Set: Created 3 years, 10 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698