Chromium Code Reviews| 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..2cd2c5d947dcacc03765c5604f803cb38ee14f10 |
| --- /dev/null |
| +++ b/media/tools/shader_bench/cpu_color_painter.h |
| @@ -0,0 +1,24 @@ |
| +// 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(); |
| + virtual void Initialize(int width, int height); |
| + virtual void Paint(scoped_refptr<media::VideoFrame> video_frame); |
| + private: |
|
Alpha Left Google
2010/11/29 20:06:13
empty line before this line.
vrk (LEFT CHROMIUM)
2010/11/30 01:21:35
Done.
|
| + GLuint program_id_; |
| + GLuint textures_[1]; |
| +}; |
|
Alpha Left Google
2010/11/29 20:06:13
disallow_copy_and_assign
vrk (LEFT CHROMIUM)
2010/11/30 01:21:35
Done.
|
| + |
| +#endif // MEDIA_TOOLS_SHADER_BENCH_CPU_COLOR_PAINTER_H_ |