OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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 APP_GFX_GL_GL_CONTEXT_OSMESA_H_ | 5 #ifndef APP_GFX_GL_GL_CONTEXT_OSMESA_H_ |
6 #define APP_GFX_GL_GL_CONTEXT_OSMESA_H_ | 6 #define APP_GFX_GL_GL_CONTEXT_OSMESA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "gfx/size.h" | |
11 #include "app/gfx/gl/gl_context.h" | 10 #include "app/gfx/gl/gl_context.h" |
| 11 #include "ui/gfx/size.h" |
12 | 12 |
13 typedef struct osmesa_context *OSMesaContext; | 13 typedef struct osmesa_context *OSMesaContext; |
14 | 14 |
15 namespace gfx { | 15 namespace gfx { |
16 | 16 |
17 // Encapsulates an OSMesa OpenGL context that uses software rendering. | 17 // Encapsulates an OSMesa OpenGL context that uses software rendering. |
18 class OSMesaGLContext : public GLContext { | 18 class OSMesaGLContext : public GLContext { |
19 public: | 19 public: |
20 OSMesaGLContext(); | 20 OSMesaGLContext(); |
21 virtual ~OSMesaGLContext(); | 21 virtual ~OSMesaGLContext(); |
(...skipping 23 matching lines...) Expand all Loading... |
45 gfx::Size size_; | 45 gfx::Size size_; |
46 scoped_array<int32> buffer_; | 46 scoped_array<int32> buffer_; |
47 OSMesaContext context_; | 47 OSMesaContext context_; |
48 | 48 |
49 DISALLOW_COPY_AND_ASSIGN(OSMesaGLContext); | 49 DISALLOW_COPY_AND_ASSIGN(OSMesaGLContext); |
50 }; | 50 }; |
51 | 51 |
52 } // namespace gfx | 52 } // namespace gfx |
53 | 53 |
54 #endif // APP_GFX_GL_GL_CONTEXT_OSMESA_H_ | 54 #endif // APP_GFX_GL_GL_CONTEXT_OSMESA_H_ |
OLD | NEW |