Chromium Code Reviews| 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_(NULL) { | |
|
scherkus (not reviewing)
2010/11/30 23:36:10
nit: extra 2 spaces
vrk (LEFT CHROMIUM)
2010/12/01 02:46:11
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 |