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

Side by Side Diff: media/player/wtl_renderer.cc

Issue 99117: media player wtl_render - video renderer (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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/player/wtl_renderer.h ('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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "media/player/stdafx.h"
6 #include "media/player/view.h"
7
8 WtlVideoRenderer::WtlVideoRenderer(WtlVideoWindow* window)
9 : window_(window) {
10 }
11
12 bool WtlVideoRenderer::OnInitialize(size_t width, size_t height) {
13 window_->SetSize(width, height);
14 return true;
15 }
16
17 void WtlVideoRenderer::OnPaintNeeded() {
18 window_->Invalidate();
19 }
20
21 void WtlVideoRenderer::GetCurrentFrame(
22 scoped_refptr<media::VideoFrame>* frame_out) {
23 return media::VideoRendererBase::GetCurrentFrame(frame_out);
24 }
OLDNEW
« no previous file with comments | « media/player/wtl_renderer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698