OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "media/tools/shader_bench/painter.h" | |
6 | |
7 Painter::Painter() | |
8 : frames_(0) { | |
Alpha Left Google
2010/11/29 20:06:13
frames_(NULL), only WebKit uses 0 instead of NULL.
vrk (LEFT CHROMIUM)
2010/11/30 01:21:35
Done.
| |
9 } | |
10 | |
11 void Painter::OnPaint() { | |
12 if (frames_ && !frames_->empty()) { | |
13 scoped_refptr<media::VideoFrame> cur_frame = frames_->front(); | |
14 Paint(cur_frame); | |
15 frames_->pop_front(); | |
16 frames_->push_back(cur_frame); | |
17 } | |
18 } | |
19 | |
20 void Painter::LoadFrames( | |
21 std::deque<scoped_refptr<media::VideoFrame> >* frames) { | |
22 frames_ = frames; | |
23 } | |
OLD | NEW |