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

Side by Side Diff: media/tools/mfdecoder/main.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 | « media/DEPS ('k') | media/tools/shader_bench/shader_bench.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifdef UNICODE 5 #ifdef UNICODE
6 #undef UNICODE 6 #undef UNICODE
7 #endif 7 #endif
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include <d3d9.h> 11 #include <d3d9.h>
12 #include <dxva2api.h> 12 #include <dxva2api.h>
13 #include <evr.h> 13 #include <evr.h>
14 #include <mfapi.h> 14 #include <mfapi.h>
15 #include <mfreadwrite.h> 15 #include <mfreadwrite.h>
16 #include <windows.h> 16 #include <windows.h>
17 17
18 #include "base/at_exit.h" 18 #include "base/at_exit.h"
19 #include "base/basictypes.h" 19 #include "base/basictypes.h"
20 #include "base/logging.h" 20 #include "base/logging.h"
21 #include "base/message_loop.h" 21 #include "base/message_loop.h"
22 #include "base/scoped_comptr_win.h" 22 #include "base/scoped_comptr_win.h"
23 #include "base/scoped_ptr.h" 23 #include "base/scoped_ptr.h"
24 #include "base/time.h" 24 #include "base/time.h"
25 #include "gfx/gdi_util.h"
26 #include "media/base/yuv_convert.h" 25 #include "media/base/yuv_convert.h"
27 #include "media/tools/mfdecoder/mfdecoder.h" 26 #include "media/tools/mfdecoder/mfdecoder.h"
27 #include "ui/gfx/gdi_util.h"
28 28
29 namespace { 29 namespace {
30 30
31 const char* const kWindowClass = "Chrome_MF_Decoder"; 31 const char* const kWindowClass = "Chrome_MF_Decoder";
32 const char* const kWindowTitle = "MF Decoder"; 32 const char* const kWindowTitle = "MF Decoder";
33 const int kWindowStyleFlags = (WS_OVERLAPPEDWINDOW | WS_VISIBLE) & 33 const int kWindowStyleFlags = (WS_OVERLAPPEDWINDOW | WS_VISIBLE) &
34 ~(WS_MAXIMIZEBOX | WS_THICKFRAME); 34 ~(WS_MAXIMIZEBOX | WS_THICKFRAME);
35 bool g_render_to_window = false; 35 bool g_render_to_window = false;
36 bool g_render_asap = false; 36 bool g_render_asap = false;
37 37
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 << "\nAverage decode time: " << ((g_num_frames == 0) ? 551 << "\nAverage decode time: " << ((g_num_frames == 0) ?
552 0 : (g_decode_time->InMillisecondsF() / g_num_frames)) 552 0 : (g_decode_time->InMillisecondsF() / g_num_frames))
553 << "\nRender time: " << g_render_time->InMilliseconds() << "ms" 553 << "\nRender time: " << g_render_time->InMilliseconds() << "ms"
554 << "\nAverage render time: " << ((g_num_frames == 0) ? 554 << "\nAverage render time: " << ((g_num_frames == 0) ?
555 0 : (g_render_time->InMillisecondsF() / g_num_frames)); 555 0 : (g_render_time->InMillisecondsF() / g_num_frames));
556 printf("Normal termination\n"); 556 printf("Normal termination\n");
557 delete g_decode_time; 557 delete g_decode_time;
558 delete g_render_time; 558 delete g_render_time;
559 return 0; 559 return 0;
560 } 560 }
OLDNEW
« no previous file with comments | « media/DEPS ('k') | media/tools/shader_bench/shader_bench.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698