| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_TOOLS_SHADER_BENCH_GPU_PAINTER_H_ | 5 #ifndef MEDIA_TOOLS_SHADER_BENCH_GPU_PAINTER_H_ |
| 6 #define MEDIA_TOOLS_SHADER_BENCH_GPU_PAINTER_H_ | 6 #define MEDIA_TOOLS_SHADER_BENCH_GPU_PAINTER_H_ |
| 7 | 7 |
| 8 #include "app/gfx/gl/gl_bindings.h" | |
| 9 #include "app/gfx/gl/gl_context.h" | |
| 10 #include "app/gfx/gl/gl_implementation.h" | |
| 11 #include "media/tools/shader_bench/painter.h" | 8 #include "media/tools/shader_bench/painter.h" |
| 9 #include "ui/gfx/gl/gl_bindings.h" |
| 10 #include "ui/gfx/gl/gl_context.h" |
| 11 #include "ui/gfx/gl/gl_implementation.h" |
| 12 | 12 |
| 13 // Class that renders video frames to a window via GPU. | 13 // Class that renders video frames to a window via GPU. |
| 14 class GPUPainter : public Painter { | 14 class GPUPainter : public Painter { |
| 15 public: | 15 public: |
| 16 GPUPainter(); | 16 GPUPainter(); |
| 17 virtual ~GPUPainter(); | 17 virtual ~GPUPainter(); |
| 18 | 18 |
| 19 // Returns a reference to the GL context. | 19 // Returns a reference to the GL context. |
| 20 gfx::GLContext* context() const { return context_; } | 20 gfx::GLContext* context() const { return context_; } |
| 21 | 21 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 33 // GL_FRAGMENT_SHADER. Returns id of shader. | 33 // GL_FRAGMENT_SHADER. Returns id of shader. |
| 34 GLuint LoadShader(unsigned type, const char* shader_source); | 34 GLuint LoadShader(unsigned type, const char* shader_source); |
| 35 | 35 |
| 36 // Reference to the gl context. | 36 // Reference to the gl context. |
| 37 gfx::GLContext* context_; | 37 gfx::GLContext* context_; |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(GPUPainter); | 39 DISALLOW_COPY_AND_ASSIGN(GPUPainter); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 #endif // MEDIA_TOOLS_SHADER_BENCH_GPU_PAINTER_H_ | 42 #endif // MEDIA_TOOLS_SHADER_BENCH_GPU_PAINTER_H_ |
| OLD | NEW |