| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 static_cast<double>(Abs(benchmark_height_)) * | 297 static_cast<double>(Abs(benchmark_height_)) * |
| 298 static_cast<double>(benchmark_iterations_) + 255.0) / 256.0); | 298 static_cast<double>(benchmark_iterations_) + 255.0) / 256.0); |
| 299 benchmark_pixels_div1280_ = static_cast<int>(( | 299 benchmark_pixels_div1280_ = static_cast<int>(( |
| 300 static_cast<double>(Abs(benchmark_width_)) * | 300 static_cast<double>(Abs(benchmark_width_)) * |
| 301 static_cast<double>(Abs(benchmark_height_)) * | 301 static_cast<double>(Abs(benchmark_height_)) * |
| 302 static_cast<double>(benchmark_iterations_) + 1279.0) / 1280.0); | 302 static_cast<double>(benchmark_iterations_) + 1279.0) / 1280.0); |
| 303 } | 303 } |
| 304 | 304 |
| 305 int main(int argc, char** argv) { | 305 int main(int argc, char** argv) { |
| 306 ::testing::InitGoogleTest(&argc, argv); | 306 ::testing::InitGoogleTest(&argc, argv); |
| 307 // AllowCommandLineParsing allows us to ignore flags passed on to us by |
| 308 // Chromium build bots without having to explicitly disable them. |
| 309 google::AllowCommandLineReparsing(); |
| 307 google::ParseCommandLineFlags(&argc, &argv, true); | 310 google::ParseCommandLineFlags(&argc, &argv, true); |
| 308 return RUN_ALL_TESTS(); | 311 return RUN_ALL_TESTS(); |
| 309 } | 312 } |
| OLD | NEW |