OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/base_paths.h" | 5 #include "base/base_paths.h" |
6 #include "base/cpu.h" | 6 #include "base/cpu.h" |
7 #include "base/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "media/base/simd/convert_yuv_to_rgb.h" | 11 #include "media/base/simd/convert_yuv_to_rgb.h" |
12 #include "media/base/yuv_convert.h" | 12 #include "media/base/yuv_convert.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "testing/perf/perf_test.h" | 14 #include "testing/perf/perf_test.h" |
15 | 15 |
16 namespace media { | 16 namespace media { |
17 #if !defined(ARCH_CPU_ARM_FAMILY) && !defined(ARCH_CPU_MIPS_FAMILY) | 17 #if !defined(ARCH_CPU_ARM_FAMILY) && !defined(ARCH_CPU_MIPS_FAMILY) |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 perf_test::PrintResult( | 142 perf_test::PrintResult( |
143 "yuv_convert_perftest", "", "LinearScaleYUVToRGB32Row_SSE", | 143 "yuv_convert_perftest", "", "LinearScaleYUVToRGB32Row_SSE", |
144 kPerfTestIterations / total_time_seconds, "runs/s", true); | 144 kPerfTestIterations / total_time_seconds, "runs/s", true); |
145 media::EmptyRegisterState(); | 145 media::EmptyRegisterState(); |
146 } | 146 } |
147 #endif // defined(OS_WIN) && (ARCH_CPU_X86 || COMPONENT_BUILD) | 147 #endif // defined(OS_WIN) && (ARCH_CPU_X86 || COMPONENT_BUILD) |
148 | 148 |
149 #endif // !defined(ARCH_CPU_ARM_FAMILY) && !defined(ARCH_CPU_MIPS_FAMILY) | 149 #endif // !defined(ARCH_CPU_ARM_FAMILY) && !defined(ARCH_CPU_MIPS_FAMILY) |
150 | 150 |
151 } // namespace media | 151 } // namespace media |
OLD | NEW |