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

Unified Diff: gpu/command_buffer/tests/gl_pointcoord_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_manager.cc ('k') | gpu/command_buffer/tests/gl_program_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_pointcoord_unittest.cc
diff --git a/gpu/command_buffer/tests/gl_pointcoord_unittest.cc b/gpu/command_buffer/tests/gl_pointcoord_unittest.cc
index d9501b0b52084536b30c5aed52a38876184e01a8..1828aff965d6776d44398e84651b0261c7356a76 100644
--- a/gpu/command_buffer/tests/gl_pointcoord_unittest.cc
+++ b/gpu/command_buffer/tests/gl_pointcoord_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"
@@ -133,11 +134,9 @@ TEST_F(PointCoordTest, MAYBE_RenderTo) {
GLint yf = s2p(point_y + v * point_width);
GLfloat s = 0.5 + (xf + 0.5 - xw) / max_point_size;
GLfloat t = 0.5 + (yf + 0.5 - yw) / max_point_size;
- uint8 color[4] = {
- static_cast<uint8>(s * 255),
- static_cast<uint8>((1 - t) * 255),
- 0,
- 255,
+ uint8_t color[4] = {
+ static_cast<uint8_t>(s * 255),
+ static_cast<uint8_t>((1 - t) * 255), 0, 255,
};
GLTestHelper::CheckPixels(xf, yf, 1, 1, 4, color);
}
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/command_buffer/tests/gl_program_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698