blob: 231dd31c20eb16b86214d1ca899ff0562fcdb215 [file] [log] [blame]
bsalomon@google.comdbbc4e22012-07-25 17:48:39 +00001/*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef GrUniformHandle_DEFINED
9#define GrUniformHandle_DEFINED
10
11namespace {
12inline int handle_to_index(GrGLUniformManager::UniformHandle h) { return ~h; }
13inline GrGLUniformManager::UniformHandle index_to_handle(int i) { return ~i; }
14}
15
16#endif