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

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

Issue 10392068: ui: Move gl/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac_rel Created 8 years, 7 months 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
« no previous file with comments | « media/tools/shader_bench/gpu_color_painter.cc ('k') | media/tools/shader_bench/shader_bench.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "media/tools/shader_bench/painter.h" 8 #include "media/tools/shader_bench/painter.h"
9 #include "ui/gfx/gl/gl_bindings.h" 9 #include "ui/gl/gl_bindings.h"
10 #include "ui/gfx/gl/gl_context.h" 10 #include "ui/gl/gl_context.h"
11 #include "ui/gfx/gl/gl_implementation.h" 11 #include "ui/gl/gl_implementation.h"
12 #include "ui/gfx/gl/gl_surface.h" 12 #include "ui/gl/gl_surface.h"
13 13
14 // Class that renders video frames to a window via GPU. 14 // Class that renders video frames to a window via GPU.
15 class GPUPainter : public Painter { 15 class GPUPainter : public Painter {
16 public: 16 public:
17 GPUPainter(); 17 GPUPainter();
18 virtual ~GPUPainter(); 18 virtual ~GPUPainter();
19 19
20 // Returns a reference to the GL context. 20 // Returns a reference to the GL context.
21 gfx::GLSurface* surface() const { return surface_; } 21 gfx::GLSurface* surface() const { return surface_; }
22 gfx::GLContext* context() const { return context_; } 22 gfx::GLContext* context() const { return context_; }
(...skipping 13 matching lines...) Expand all
36 GLuint LoadShader(unsigned type, const char* shader_source); 36 GLuint LoadShader(unsigned type, const char* shader_source);
37 37
38 // Reference to the gl context. 38 // Reference to the gl context.
39 gfx::GLSurface* surface_; 39 gfx::GLSurface* surface_;
40 gfx::GLContext* context_; 40 gfx::GLContext* context_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(GPUPainter); 42 DISALLOW_COPY_AND_ASSIGN(GPUPainter);
43 }; 43 };
44 44
45 #endif // MEDIA_TOOLS_SHADER_BENCH_GPU_PAINTER_H_ 45 #endif // MEDIA_TOOLS_SHADER_BENCH_GPU_PAINTER_H_
OLDNEW
« no previous file with comments | « media/tools/shader_bench/gpu_color_painter.cc ('k') | media/tools/shader_bench/shader_bench.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698