OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrUniformHandle_DEFINED | 8 #ifndef GrUniformHandle_DEFINED |
9 #define GrUniformHandle_DEFINED | 9 #define GrUniformHandle_DEFINED |
10 | 10 |
11 namespace { | 11 inline GrGLUniformManager::UniformHandle GrGLUniformManager::UniformHandle::Crea
teFromUniformIndex(int index) { |
12 inline int handle_to_index(GrGLUniformManager::UniformHandle h) { return ~h; } | 12 return GrGLUniformManager::UniformHandle(index); |
13 inline GrGLUniformManager::UniformHandle index_to_handle(int i) { return ~i; } | |
14 } | 13 } |
15 | 14 |
16 #endif | 15 #endif |
OLD | NEW |