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

Unified Diff: media/tools/scaler_bench/scaler_bench.cc

Issue 11269017: Plumb through cropped output size for VideoFrame (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Found the windows failure, and fixed it. Thanks akalin@ Created 8 years, 1 month 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/tools/player_x11/x11_video_renderer.cc ('k') | media/tools/shader_bench/cpu_color_painter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/tools/scaler_bench/scaler_bench.cc
diff --git a/media/tools/scaler_bench/scaler_bench.cc b/media/tools/scaler_bench/scaler_bench.cc
index d8525d1d922b8796e7845e7028e8d50455c68734..18c4ca17174dd0eae7a5918a04be5f3e22833511 100644
--- a/media/tools/scaler_bench/scaler_bench.cc
+++ b/media/tools/scaler_bench/scaler_bench.cc
@@ -122,7 +122,8 @@ static double BenchmarkFilter(media::ScaleFilter filter) {
gfx::Size dest_size(dest_width, dest_height);
dest_frames.push_back(
- VideoFrame::CreateFrame(VideoFrame::RGB32, dest_size, dest_size,
+ VideoFrame::CreateFrame(VideoFrame::RGB32, dest_size,
+ gfx::Rect(dest_size), dest_size,
TimeDelta::FromSeconds(0)));
}
@@ -160,7 +161,8 @@ static double BenchmarkScaleWithRect() {
gfx::Size dest_size(dest_width, dest_height);
dest_frames.push_back(
- VideoFrame::CreateFrame(VideoFrame::RGB32, dest_size, dest_size,
+ VideoFrame::CreateFrame(VideoFrame::RGB32, dest_size,
+ gfx::Rect(dest_size), dest_size,
TimeDelta::FromSeconds(0)));
}
« no previous file with comments | « media/tools/player_x11/x11_video_renderer.cc ('k') | media/tools/shader_bench/cpu_color_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698