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

Unified Diff: gpu/command_buffer/tests/gl_ext_srgb_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
Index: gpu/command_buffer/tests/gl_ext_srgb_unittest.cc
diff --git a/gpu/command_buffer/tests/gl_ext_srgb_unittest.cc b/gpu/command_buffer/tests/gl_ext_srgb_unittest.cc
index 53b3c24fc3d4d2a260d0ddb4f0745f3def90c417..139f8e646b6b8d18697fbe8a61ce03954cc6dd68 100644
--- a/gpu/command_buffer/tests/gl_ext_srgb_unittest.cc
+++ b/gpu/command_buffer/tests/gl_ext_srgb_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"
@@ -34,10 +35,10 @@ TEST_F(GLEXTSRGBTest, TexImageSRGBALPHAFormat) {
static const int kSubImageY = kHeight / 2;
static const int kSubImageWidth = kWidth / 2;
static const int kSubImageHeight = kHeight / 2;
- static const uint8 kImageColor[] = {255, 255, 255, 255};
- static const uint8 kSubImageColor[] = {128, 128, 128, 128};
+ static const uint8_t kImageColor[] = {255, 255, 255, 255};
+ static const uint8_t kSubImageColor[] = {128, 128, 128, 128};
- uint8 pixels[kWidth * kHeight * 4];
+ uint8_t pixels[kWidth * kHeight * 4];
GLuint tex = 0;
glGenTextures(1, &tex);

Powered by Google App Engine
This is Rietveld 408576698