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

Side by Side Diff: media/tools/shader_bench/gpu_painter.h

Issue 4873002: Benchmark tool for GPU-accelerated video rendering (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added more shaders, used message loop, and cleaned up code 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_TOOLS_BENCHMARK_GPU_PAINTER_H_
6 #define MEDIA_TOOLS_BENCHMARK_GPU_PAINTER_H_
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"
12
13 // Class that renders video frames to a window via GPU.
14 class GPUPainter : public Painter {
Alpha Left Google 2010/11/19 23:33:51 also mention how this is shared between different
vrk (LEFT CHROMIUM) 2010/11/24 22:01:30 I'm not quite sure if I understand... The static m
15 public:
16 virtual void SetGLContext(gfx::GLContext* context);
17 protected:
18 static GLuint LoadShader(gfx::GLContext* context, unsigned type,
19 const char* shader_source);
20 static GLuint CreateShaderProgram(gfx::GLContext* context,
21 const char* vertex_shader_source,
22 const char* fragment_shader_source);
23 gfx::GLContext* context_;
24 };
Alpha Left Google 2010/11/19 23:33:51 disallow_copy_and_assign
vrk (LEFT CHROMIUM) 2010/11/24 22:01:30 Done.
25
26 #endif // MEDIA_TOOLS_BENCHMARK_GPU_PAINTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698