| OLD | NEW |
| 1 // Copyright (c) 2011 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 // Includes the platform independent and platform dependent GL headers. | 5 // Includes the platform independent and platform dependent GL headers. |
| 6 // Only include this in cc files. It pulls in system headers, including | 6 // Only include this in cc files. It pulls in system headers, including |
| 7 // the X11 headers on linux, which define all kinds of macros that are | 7 // the X11 headers on linux, which define all kinds of macros that are |
| 8 // liable to cause conflicts. | 8 // liable to cause conflicts. |
| 9 | 9 |
| 10 #ifndef UI_GFX_GL_GL_BINDINGS_H_ | 10 #ifndef UI_GFX_GL_GL_BINDINGS_H_ |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #undef Status | 34 #undef Status |
| 35 #endif | 35 #endif |
| 36 | 36 |
| 37 #if defined(OS_WIN) | 37 #if defined(OS_WIN) |
| 38 #define GL_BINDING_CALL WINAPI | 38 #define GL_BINDING_CALL WINAPI |
| 39 #else | 39 #else |
| 40 #define GL_BINDING_CALL | 40 #define GL_BINDING_CALL |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; | 43 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; |
| 44 #if !defined(NDEBUG) |
| 45 #define GL_SERVICE_LOG_CODE_BLOCK(code) |
| 46 #else |
| 47 #define GL_SERVICE_LOG_CODE_BLOCK(code) code |
| 48 #endif |
| 44 | 49 |
| 45 // Forward declare OSMesa types. | 50 // Forward declare OSMesa types. |
| 46 typedef struct osmesa_context *OSMesaContext; | 51 typedef struct osmesa_context *OSMesaContext; |
| 47 typedef void (*OSMESAproc)(); | 52 typedef void (*OSMESAproc)(); |
| 48 | 53 |
| 49 #if !defined(OS_MACOSX) | 54 #if !defined(OS_MACOSX) |
| 50 | 55 |
| 51 // Forward declare EGL types. | 56 // Forward declare EGL types. |
| 52 typedef unsigned int EGLBoolean; | 57 typedef unsigned int EGLBoolean; |
| 53 typedef unsigned int EGLenum; | 58 typedef unsigned int EGLenum; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 #endif | 100 #endif |
| 96 | 101 |
| 97 namespace gfx { | 102 namespace gfx { |
| 98 | 103 |
| 99 // Find an entry point to the mock GL implementation. | 104 // Find an entry point to the mock GL implementation. |
| 100 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); | 105 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); |
| 101 | 106 |
| 102 } // namespace gfx | 107 } // namespace gfx |
| 103 | 108 |
| 104 #endif // UI_GFX_GL_GL_BINDINGS_H_ | 109 #endif // UI_GFX_GL_GL_BINDINGS_H_ |
| OLD | NEW |