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

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 nits 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
« no previous file with comments | « media/tools/shader_bench/painter.h ('k') | media/tools/shader_bench/shader_bench.cc » ('j') | 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) 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) {
9 }
10
11 Painter::~Painter() {
12 }
13
14 void Painter::OnPaint() {
15 if (frames_ && !frames_->empty()) {
16 scoped_refptr<media::VideoFrame> cur_frame = frames_->front();
17 Paint(cur_frame);
18 frames_->pop_front();
19 frames_->push_back(cur_frame);
20 }
21 }
22
23 void Painter::LoadFrames(
24 std::deque<scoped_refptr<media::VideoFrame> >* frames) {
25 frames_ = frames;
26 }
OLDNEW
« no previous file with comments | « media/tools/shader_bench/painter.h ('k') | media/tools/shader_bench/shader_bench.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698