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

Side by Side Diff: media/test/pipeline_integration_perftest.cc

Issue 1254953004: Hacking ffvp9 decoder support for profiling. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Supress windows warning Created 4 years, 8 months 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 unified diff | Download patch
« no previous file with comments | « media/filters/vpx_video_decoder.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "media/base/test_data_util.h" 5 #include "media/base/test_data_util.h"
6 #include "media/test/pipeline_integration_test_base.h" 6 #include "media/test/pipeline_integration_test_base.h"
7 #include "testing/perf/perf_test.h" 7 #include "testing/perf/perf_test.h"
8 8
9 namespace media { 9 namespace media {
10 10
11 static const int kBenchmarkIterationsAudio = 200; 11 static const int kBenchmarkIterationsAudio = 200;
12 static const int kBenchmarkIterationsVideo = 20; 12 static const int kBenchmarkIterationsVideo = 100;
13 13
14 static void RunPlaybackBenchmark(const std::string& filename, 14 static void RunPlaybackBenchmark(const std::string& filename,
15 const std::string& name, 15 const std::string& name,
16 int iterations, 16 int iterations,
17 bool audio_only) { 17 bool audio_only) {
18 double time_seconds = 0.0; 18 double time_seconds = 0.0;
19 19
20 for (int i = 0; i < iterations; ++i) { 20 for (int i = 0; i < iterations; ++i) {
21 PipelineIntegrationTestBase pipeline; 21 PipelineIntegrationTestBase pipeline;
22 22
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 "clockless_video_playback_theora"); 80 "clockless_video_playback_theora");
81 } 81 }
82 82
83 #if defined(USE_PROPRIETARY_CODECS) 83 #if defined(USE_PROPRIETARY_CODECS)
84 TEST(PipelineIntegrationPerfTest, MP4PlaybackBenchmark) { 84 TEST(PipelineIntegrationPerfTest, MP4PlaybackBenchmark) {
85 RunVideoPlaybackBenchmark("bear_silent.mp4", "clockless_video_playback_mp4"); 85 RunVideoPlaybackBenchmark("bear_silent.mp4", "clockless_video_playback_mp4");
86 } 86 }
87 #endif 87 #endif
88 88
89 } // namespace media 89 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/vpx_video_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698