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

Side by Side Diff: media/tools/scaler_bench/scaler_bench.cc

Issue 7517020: First pass at removal of unneeded dependencies on skia\ext\platform_canvas.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « content/plugin/webplugin_proxy.cc ('k') | ui/gfx/canvas.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This tool can be used to measure performace of video frame scaling 5 // This tool can be used to measure performace of video frame scaling
6 // code. It times performance of the scaler with and without filtering. 6 // code. It times performance of the scaler with and without filtering.
7 // It also measures performance of the Skia scaler for comparison. 7 // It also measures performance of the Skia scaler for comparison.
8 8
9 #include <iostream> 9 #include <iostream>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "base/string_number_conversions.h" 15 #include "base/string_number_conversions.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "media/base/video_frame.h" 17 #include "media/base/video_frame.h"
18 #include "media/base/yuv_convert.h" 18 #include "media/base/yuv_convert.h"
19 #include "skia/ext/platform_canvas.h" 19 #include "third_party/skia/include/core/SkCanvas.h"
20 20
21 using base::TimeDelta; 21 using base::TimeDelta;
22 using base::TimeTicks; 22 using base::TimeTicks;
23 using media::VideoFrame; 23 using media::VideoFrame;
24 24
25 static int source_width = 1280; 25 static int source_width = 1280;
26 static int source_height = 720; 26 static int source_height = 720;
27 static int dest_width = 1366; 27 static int dest_width = 1366;
28 static int dest_height = 768; 28 static int dest_height = 768;
29 static int num_frames = 500; 29 static int num_frames = 500;
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 << BenchmarkFilter(media::FILTER_BILINEAR_V) 227 << BenchmarkFilter(media::FILTER_BILINEAR_V)
228 << "ms/frame" << std::endl; 228 << "ms/frame" << std::endl;
229 std::cout << "Bilinear Horizontal: " 229 std::cout << "Bilinear Horizontal: "
230 << BenchmarkFilter(media::FILTER_BILINEAR_H) 230 << BenchmarkFilter(media::FILTER_BILINEAR_H)
231 << "ms/frame" << std::endl; 231 << "ms/frame" << std::endl;
232 std::cout << "Bilinear: " << BenchmarkFilter(media::FILTER_BILINEAR) 232 std::cout << "Bilinear: " << BenchmarkFilter(media::FILTER_BILINEAR)
233 << "ms/frame" << std::endl; 233 << "ms/frame" << std::endl;
234 234
235 return 0; 235 return 0;
236 } 236 }
OLDNEW
« no previous file with comments | « content/plugin/webplugin_proxy.cc ('k') | ui/gfx/canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698