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

Side by Side Diff: media/tools/shader_bench/painter.cc

Issue 4873002: Benchmark tool for GPU-accelerated video rendering (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed media.gyp Created 10 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 | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698