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

Side by Side Diff: media/tools/player_wtl/wtl_renderer.cc

Issue 431046: Re-organizing all tools under /src/media to be consistent with the rest of the repository. (Closed)
Patch Set: Created 11 years 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/tools/player_wtl/wtl_renderer.h ('k') | media/tools/player_x11/player_x11.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/player/wtl_renderer.h" 5 #include "media/tools/player_wtl/wtl_renderer.h"
6 6
7 #include "media/player/view.h" 7 #include "media/tools/player_wtl/view.h"
8 8
9 WtlVideoRenderer::WtlVideoRenderer(WtlVideoWindow* window) 9 WtlVideoRenderer::WtlVideoRenderer(WtlVideoWindow* window)
10 : window_(window) { 10 : window_(window) {
11 } 11 }
12 12
13 WtlVideoRenderer::~WtlVideoRenderer() { 13 WtlVideoRenderer::~WtlVideoRenderer() {
14 } 14 }
15 15
16 // static 16 // static
17 bool WtlVideoRenderer::IsMediaFormatSupported( 17 bool WtlVideoRenderer::IsMediaFormatSupported(
(...skipping 11 matching lines...) Expand all
29 int height = 0; 29 int height = 0;
30 if (!ParseMediaFormat(decoder->media_format(), &width, &height)) 30 if (!ParseMediaFormat(decoder->media_format(), &width, &height))
31 return false; 31 return false;
32 window_->SetSize(width, height); 32 window_->SetSize(width, height);
33 return true; 33 return true;
34 } 34 }
35 35
36 void WtlVideoRenderer::OnFrameAvailable() { 36 void WtlVideoRenderer::OnFrameAvailable() {
37 window_->Invalidate(); 37 window_->Invalidate();
38 } 38 }
OLDNEW
« no previous file with comments | « media/tools/player_wtl/wtl_renderer.h ('k') | media/tools/player_x11/player_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698