Chromium Code Reviews| Index: media/tools/shader_bench/gpu_color_painter_exp.h |
| diff --git a/media/tools/shader_bench/gpu_color_painter_exp.h b/media/tools/shader_bench/gpu_color_painter_exp.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..50c34f78b0b34bf572cb81e9b9ea449565e17028 |
| --- /dev/null |
| +++ b/media/tools/shader_bench/gpu_color_painter_exp.h |
| @@ -0,0 +1,27 @@ |
| +// 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_GPU_COLOR_PAINTER_EXP_H_ |
| +#define MEDIA_TOOLS_SHADER_BENCH_GPU_COLOR_PAINTER_EXP_H_ |
| + |
| +#include "app/gfx/gl/gl_context.h" |
| +#include "base/scoped_ptr.h" |
| +#include "media/base/video_frame.h" |
| +#include "media/tools/shader_bench/gpu_painter.h" |
| + |
| +// Does color space conversion using RGBA textures acting as |
| +// luminance textures (experimental shader hack) for YUV->RGBA |
| +// conversion; renders using GPU. |
| +class GPUColorRGBALumHackPainter : public GPUPainter { |
| + public: |
| + GPUColorRGBALumHackPainter(); |
| + virtual ~GPUColorRGBALumHackPainter(); |
| + virtual void Initialize(int width, int height); |
| + virtual void Paint(scoped_refptr<media::VideoFrame> video_frame); |
| + private: |
| + GLuint program_id_; |
| + GLuint textures_[3]; |
| +}; |
|
Alpha Left Google
2010/11/19 23:33:51
disallow_copy_and_assign
vrk (LEFT CHROMIUM)
2010/11/24 22:01:30
Done.
|
| + |
| +#endif // MEDIA_TOOLS_SHADER_BENCH_GPU_COLOR_PAINTER_EXP_H_ |