blob: 20056d3b3759609e0dfa9eb7e0dc8510675b2434 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/player/stdafx.h"
#include "media/player/view.h"
WtlVideoRenderer::WtlVideoRenderer(WtlVideoWindow* window)
: window_(window) {
}
bool WtlVideoRenderer::OnInitialize(size_t width, size_t height) {
window_->SetSize(width, height);
return true;
}
void WtlVideoRenderer::OnPaintNeeded() {
window_->Invalidate();
}
void WtlVideoRenderer::GetCurrentFrame(
scoped_refptr<media::VideoFrame>* frame_out) {
return media::VideoRendererBase::GetCurrentFrame(frame_out);
}
|