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

Unified Diff: media/tools/shader_bench/cpu_color_painter.h

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, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/media.gyp ('k') | media/tools/shader_bench/cpu_color_painter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/tools/shader_bench/cpu_color_painter.h
diff --git a/media/tools/shader_bench/cpu_color_painter.h b/media/tools/shader_bench/cpu_color_painter.h
new file mode 100644
index 0000000000000000000000000000000000000000..c3e14c4c901ce966a318165817fbe5b2271e7cef
--- /dev/null
+++ b/media/tools/shader_bench/cpu_color_painter.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2010 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.
+
+#ifndef MEDIA_TOOLS_SHADER_BENCH_CPU_COLOR_PAINTER_H_
+#define MEDIA_TOOLS_SHADER_BENCH_CPU_COLOR_PAINTER_H_
+
+#include "base/scoped_ptr.h"
+#include "media/base/video_frame.h"
+#include "media/tools/shader_bench/gpu_painter.h"
+
+// Does color conversion using CPU, rendering on GPU.
+class CPUColorPainter : public GPUPainter {
+ public:
+ CPUColorPainter();
+ virtual ~CPUColorPainter();
+
+ // Painter interface.
+ virtual void Initialize(int width, int height);
+ virtual void Paint(scoped_refptr<media::VideoFrame> video_frame);
+
+ private:
+ // Shader program id.
+ GLuint program_id_;
+
+ // ID of rgba texture.
+ GLuint textures_[1];
+
+ DISALLOW_COPY_AND_ASSIGN(CPUColorPainter);
+};
+
+#endif // MEDIA_TOOLS_SHADER_BENCH_CPU_COLOR_PAINTER_H_
« no previous file with comments | « media/media.gyp ('k') | media/tools/shader_bench/cpu_color_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698