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

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

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/command_buffer/tests/gl_test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 29 matching lines...) Expand all
40 static GLuint SetupColorsForUnitQuad( 40 static GLuint SetupColorsForUnitQuad(
41 GLint location, const GLfloat color[4], GLenum usage); 41 GLint location, const GLfloat color[4], GLenum usage);
42 42
43 // Checks an area of pixels for a color. 43 // Checks an area of pixels for a color.
44 static bool CheckPixels( 44 static bool CheckPixels(
45 GLint x, GLint y, GLsizei width, GLsizei height, GLint tolerance, 45 GLint x, GLint y, GLsizei width, GLsizei height, GLint tolerance,
46 const uint8* color); 46 const uint8* color);
47 47
48 // Uses ReadPixels to save an area of the current FBO/Backbuffer. 48 // Uses ReadPixels to save an area of the current FBO/Backbuffer.
49 static bool SaveBackbufferAsBMP(const char* filename, int width, int height); 49 static bool SaveBackbufferAsBMP(const char* filename, int width, int height);
50
51 // Run unit tests.
52 static int RunTests(int argc, char** argv);
53 }; 50 };
54 51
55 #endif // GPU_COMMAND_BUFFER_TESTS_GL_TEST_UTILS_H_ 52 #endif // GPU_COMMAND_BUFFER_TESTS_GL_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/command_buffer/tests/gl_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698