| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // These functions emluate GLES2 over command buffers. | 5 // These functions emluate GLES2 over command buffers. |
| 6 | 6 |
| 7 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_LIB_H_ | 7 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_LIB_H_ |
| 8 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_LIB_H_ | 8 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_LIB_H_ |
| 9 | 9 |
| 10 #include "gpu/command_buffer/client/gles2_implementation.h" | 10 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 11 | 11 |
| 12 namespace gles2 { | 12 namespace gles2 { |
| 13 | 13 |
| 14 extern ::gpu::gles2::GLES2Implementation* g_gl_impl; | 14 extern ::gpu::gles2::GLES2Implementation* g_gl_impl; |
| 15 | 15 |
| 16 inline ::gpu::gles2::GLES2Implementation* GetGLContext() { | 16 inline ::gpu::gles2::GLES2Implementation* GetGLContext() { |
| 17 return g_gl_impl; | 17 return g_gl_impl; |
| 18 } | 18 } |
| 19 | 19 |
| 20 // Initializes the GLES2 library. | 20 // Initializes the GLES2 library. |
| 21 bool InitGLES2Lib(); | 21 bool InitGLES2Lib(); |
| 22 | 22 |
| 23 } // namespace gles2 | 23 } // namespace gles2 |
| 24 | 24 |
| 25 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_LIB_H_ | 25 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_LIB_H_ |
| 26 | 26 |
| OLD | NEW |