| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #ifndef GrGLTypes_DEFINED | 9 #ifndef GrGLTypes_DEFINED |
| 10 #define GrGLTypes_DEFINED | 10 #define GrGLTypes_DEFINED |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 typedef signed long long int GrGLintptr; | 50 typedef signed long long int GrGLintptr; |
| 51 typedef signed long long int GrGLsizeiptr; | 51 typedef signed long long int GrGLsizeiptr; |
| 52 #else | 52 #else |
| 53 typedef signed long int GrGLintptr; | 53 typedef signed long int GrGLintptr; |
| 54 typedef signed long int GrGLsizeiptr; | 54 typedef signed long int GrGLsizeiptr; |
| 55 #endif | 55 #endif |
| 56 #else | 56 #else |
| 57 typedef signed long int GrGLintptr; | 57 typedef signed long int GrGLintptr; |
| 58 typedef signed long int GrGLsizeiptr; | 58 typedef signed long int GrGLsizeiptr; |
| 59 #endif | 59 #endif |
| 60 typedef void* GrGLeglImage; | 60 |
| 61 /** | 61 /** |
| 62 * EGL types. | 62 * EGL types. |
| 63 */ | 63 */ |
| 64 | 64 |
| 65 typedef void* GrEGLImage; | 65 typedef void* GrEGLImageKHR; |
| 66 typedef void* GrEGLDisplay; | 66 typedef void* GrEGLDisplay; |
| 67 typedef void* GrEGLContext; | 67 typedef void* GrEGLContext; |
| 68 typedef void* GrEGLClientBuffer; | 68 typedef void* GrEGLClientBuffer; |
| 69 typedef unsigned int GrEGLenum; | 69 typedef unsigned int GrEGLenum; |
| 70 typedef int32_t GrEGLint; | 70 typedef int32_t GrEGLint; |
| 71 typedef unsigned int GrEGLBoolean; | 71 typedef unsigned int GrEGLBoolean; |
| 72 | 72 |
| 73 /////////////////////////////////////////////////////////////////////////////// | 73 /////////////////////////////////////////////////////////////////////////////// |
| 74 /** | 74 /** |
| 75 * Types for interacting with GL resources created externally to Skia. GrBackend
Objects for GL | 75 * Types for interacting with GL resources created externally to Skia. GrBackend
Objects for GL |
| 76 * textures are really const GrGLTexture* | 76 * textures are really const GrGLTexture* |
| 77 */ | 77 */ |
| 78 | 78 |
| 79 struct GrGLTextureInfo { | 79 struct GrGLTextureInfo { |
| 80 GrGLenum fTarget; | 80 GrGLenum fTarget; |
| 81 GrGLuint fID; | 81 GrGLuint fID; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrGLTextureInfo*)); | 84 GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrGLTextureInfo*)); |
| 85 | 85 |
| 86 #endif | 86 #endif |
| OLD | NEW |