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

Unified Diff: gpu/command_buffer/tests/gl_stream_draw_unittest.cc

Issue 1542513002: Switch to standard integer types in gpu/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/tests/gl_readback_unittest.cc ('k') | gpu/command_buffer/tests/gl_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_stream_draw_unittest.cc
diff --git a/gpu/command_buffer/tests/gl_stream_draw_unittest.cc b/gpu/command_buffer/tests/gl_stream_draw_unittest.cc
index 90968c8762d78f9282c18ee8345d25a080b4d2af..9722f02e41a09530aa317097076bfe16985193dc 100644
--- a/gpu/command_buffer/tests/gl_stream_draw_unittest.cc
+++ b/gpu/command_buffer/tests/gl_stream_draw_unittest.cc
@@ -4,6 +4,7 @@
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
+#include <stdint.h>
#include "gpu/command_buffer/tests/gl_manager.h"
#include "gpu/command_buffer/tests/gl_test_utils.h"
@@ -63,8 +64,12 @@ GLuint SetupProgram() {
TEST_F(GLStreamDrawTest, Basic) {
static GLfloat float_red[4] = { 1.0f, 0.0f, 0.0f, 1.0f, };
static GLfloat float_green[4] = { 0.0f, 1.0f, 0.0f, 1.0f, };
- static uint8 expected_red[4] = {255, 0, 0, 255, };
- static uint8 expected_green[4] = {0, 255, 0, 255, };
+ static uint8_t expected_red[4] = {
+ 255, 0, 0, 255,
+ };
+ static uint8_t expected_green[4] = {
+ 0, 255, 0, 255,
+ };
GLuint program = SetupProgram();
GLuint position_loc = glGetAttribLocation(program, "a_position");
@@ -85,8 +90,12 @@ TEST_F(GLStreamDrawTest, Basic) {
TEST_F(GLStreamDrawTest, DrawElements) {
static GLfloat float_red[4] = { 1.0f, 0.0f, 0.0f, 1.0f, };
static GLfloat float_green[4] = { 0.0f, 1.0f, 0.0f, 1.0f, };
- static uint8 expected_red[4] = {255, 0, 0, 255, };
- static uint8 expected_green[4] = {0, 255, 0, 255, };
+ static uint8_t expected_red[4] = {
+ 255, 0, 0, 255,
+ };
+ static uint8_t expected_green[4] = {
+ 0, 255, 0, 255,
+ };
GLuint program = SetupProgram();
GLuint position_loc = glGetAttribLocation(program, "a_position");
@@ -120,8 +129,12 @@ TEST_F(GLStreamDrawTest, VertexArrayObjects) {
static GLfloat float_red[4] = { 1.0f, 0.0f, 0.0f, 1.0f, };
static GLfloat float_green[4] = { 0.0f, 1.0f, 0.0f, 1.0f, };
- static uint8 expected_red[4] = {255, 0, 0, 255, };
- static uint8 expected_green[4] = {0, 255, 0, 255, };
+ static uint8_t expected_red[4] = {
+ 255, 0, 0, 255,
+ };
+ static uint8_t expected_green[4] = {
+ 0, 255, 0, 255,
+ };
GLuint program = SetupProgram();
GLuint position_loc = glGetAttribLocation(program, "a_position");
« no previous file with comments | « gpu/command_buffer/tests/gl_readback_unittest.cc ('k') | gpu/command_buffer/tests/gl_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698