Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 The Android Open Source Project | 2 * Copyright (C) 2008 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Licensed under the Apache License, Version 2.0 (the "License"); | 4 * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 * you may not use this file except in compliance with the License. | 5 * you may not use this file except in compliance with the License. |
| 6 * You may obtain a copy of the License at | 6 * You may obtain a copy of the License at |
| 7 * | 7 * |
| 8 * http://www.apache.org/licenses/LICENSE-2.0 | 8 * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 * | 9 * |
| 10 * Unless required by applicable law or agreed to in writing, software | 10 * Unless required by applicable law or agreed to in writing, software |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 /* implementation-specific private usage flags */ | 123 /* implementation-specific private usage flags */ |
| 124 GRALLOC_USAGE_PRIVATE_0 = 0x10000000, | 124 GRALLOC_USAGE_PRIVATE_0 = 0x10000000, |
| 125 GRALLOC_USAGE_PRIVATE_1 = 0x20000000, | 125 GRALLOC_USAGE_PRIVATE_1 = 0x20000000, |
| 126 GRALLOC_USAGE_PRIVATE_2 = 0x40000000, | 126 GRALLOC_USAGE_PRIVATE_2 = 0x40000000, |
| 127 GRALLOC_USAGE_PRIVATE_3 = 0x80000000, | 127 GRALLOC_USAGE_PRIVATE_3 = 0x80000000, |
| 128 GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000, | 128 GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000, |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 /*****************************************************************************/ | 131 /*****************************************************************************/ |
| 132 | 132 |
| 133 enum { | |
|
rjkroege
2014/05/26 20:49:59
Does this belong here? The implication is that it
fjhenigman
2014/06/01 20:56:52
This is part of the HAL interface: libhardware let
| |
| 134 GRALLOC_MODULE_PERFORM_GET_DRM_FD = 0x80000002, | |
| 135 GRALLOC_MODULE_PERFORM_GET_DRM_MAGIC = 0x80000003, | |
| 136 GRALLOC_MODULE_PERFORM_AUTH_DRM_MAGIC = 0x80000004, | |
| 137 GRALLOC_MODULE_PERFORM_ENTER_VT = 0x80000005, | |
| 138 GRALLOC_MODULE_PERFORM_LEAVE_VT = 0x80000006, | |
| 139 }; | |
| 140 | |
| 133 /** | 141 /** |
| 134 * Every hardware module must have a data structure named HAL_MODULE_INFO_SYM | 142 * Every hardware module must have a data structure named HAL_MODULE_INFO_SYM |
| 135 * and the fields of this data structure must begin with hw_module_t | 143 * and the fields of this data structure must begin with hw_module_t |
| 136 * followed by module specific information. | 144 * followed by module specific information. |
| 137 */ | 145 */ |
| 138 typedef struct gralloc_module_t { | 146 typedef struct gralloc_module_t { |
| 139 struct hw_module_t common; | 147 struct hw_module_t common; |
| 140 | 148 |
| 141 /* | 149 /* |
| 142 * (*registerBuffer)() must be called before a buffer_handle_t that has not | 150 * (*registerBuffer)() must be called before a buffer_handle_t that has not |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 304 GRALLOC_HARDWARE_GPU0, (struct hw_device_t**)device); | 312 GRALLOC_HARDWARE_GPU0, (struct hw_device_t**)device); |
| 305 } | 313 } |
| 306 | 314 |
| 307 static inline int gralloc_close(struct alloc_device_t* device) { | 315 static inline int gralloc_close(struct alloc_device_t* device) { |
| 308 return device->common.close(&device->common); | 316 return device->common.close(&device->common); |
| 309 } | 317 } |
| 310 | 318 |
| 311 __END_DECLS | 319 __END_DECLS |
| 312 | 320 |
| 313 #endif // ANDROID_GRALLOC_INTERFACE_H | 321 #endif // ANDROID_GRALLOC_INTERFACE_H |
| OLD | NEW |