Chromium Code Reviews| Index: media/tools/shader_bench/gpu_painter.h |
| diff --git a/media/tools/shader_bench/gpu_painter.h b/media/tools/shader_bench/gpu_painter.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cf13937c23ee6b3a4882d433f5659342454559ac |
| --- /dev/null |
| +++ b/media/tools/shader_bench/gpu_painter.h |
| @@ -0,0 +1,29 @@ |
| +// 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_BENCHMARK_GPU_PAINTER_H_ |
| +#define MEDIA_TOOLS_BENCHMARK_GPU_PAINTER_H_ |
| + |
| +#include "app/gfx/gl/gl_bindings.h" |
| +#include "app/gfx/gl/gl_context.h" |
| +#include "app/gfx/gl/gl_implementation.h" |
| +#include "media/tools/shader_bench/painter.h" |
| + |
| +// Class that renders video frames to a window via GPU. |
| +class GPUPainter : public Painter { |
| + public: |
| + GPUPainter(); |
| + virtual void SetGLContext(gfx::GLContext* context); |
| + protected: |
|
Alpha Left Google
2010/11/29 20:06:13
Empty line before protected.
|
| + static GLuint LoadShader(gfx::GLContext* context, unsigned type, |
| + const char* shader_source); |
| + static GLuint CreateShaderProgram(gfx::GLContext* context, |
| + const char* vertex_shader_source, |
| + const char* fragment_shader_source); |
| + gfx::GLContext* context_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(GPUPainter); |
| +}; |
| + |
| +#endif // MEDIA_TOOLS_BENCHMARK_GPU_PAINTER_H_ |