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

Unified Diff: media/base/yuv_convert_perftest.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef 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 | « media/base/yuv_convert.cc ('k') | media/base/yuv_convert_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3af1b7555bafc1e99765994a71fce51c3e1f5716 100644
--- a/media/base/yuv_convert_perftest.cc
+++ b/media/base/yuv_convert_perftest.cc
@@ -2,12 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdint.h>
+
#include "base/base_paths.h"
#include "base/cpu.h"
#include "base/files/file_util.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/path_service.h"
#include "base/time/time.h"
+#include "build/build_config.h"
#include "media/base/simd/convert_yuv_to_rgb.h"
#include "media/base/yuv_convert.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -37,8 +41,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 +51,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 +62,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);
« no previous file with comments | « media/base/yuv_convert.cc ('k') | media/base/yuv_convert_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698