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

Unified Diff: media/base/yuv_convert_perftest.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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: media/base/yuv_convert_perftest.cc
diff --git a/media/base/yuv_convert_perftest.cc b/media/base/yuv_convert_perftest.cc
index 2f6d5c15dc1bb1d6fcc957fc3fc148b95fd18994..92666800601affb791aa5e30b46d624b8db15525 100644
--- a/media/base/yuv_convert_perftest.cc
+++ b/media/base/yuv_convert_perftest.cc
@@ -37,8 +37,8 @@ static const int kPerfTestIterations = 2000;
class YUVConvertPerfTest : public testing::Test {
public:
YUVConvertPerfTest()
- : yuv_bytes_(new uint8[kYUV12Size]),
- rgb_bytes_converted_(new uint8[kRGBSize]) {
+ : yuv_bytes_(new uint8_t[kYUV12Size]),
+ rgb_bytes_converted_(new uint8_t[kRGBSize]) {
base::FilePath path;
CHECK(PathService::Get(base::DIR_SOURCE_ROOT, &path));
path = path.Append(FILE_PATH_LITERAL("media"))
@@ -47,7 +47,7 @@ class YUVConvertPerfTest : public testing::Test {
.Append(FILE_PATH_LITERAL("bali_640x360_P420.yuv"));
// Verify file size is correct.
- int64 actual_size = 0;
+ int64_t actual_size = 0;
base::GetFileSize(path, &actual_size);
CHECK_EQ(actual_size, kYUV12Size);
@@ -58,8 +58,8 @@ class YUVConvertPerfTest : public testing::Test {
CHECK_EQ(bytes_read, kYUV12Size);
}
- scoped_ptr<uint8[]> yuv_bytes_;
- scoped_ptr<uint8[]> rgb_bytes_converted_;
+ scoped_ptr<uint8_t[]> yuv_bytes_;
+ scoped_ptr<uint8_t[]> rgb_bytes_converted_;
private:
DISALLOW_COPY_AND_ASSIGN(YUVConvertPerfTest);

Powered by Google App Engine
This is Rietveld 408576698