aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLUniformHandle.h
blob: 231dd31c20eb16b86214d1ca899ff0562fcdb215 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Copyright 2012 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef GrUniformHandle_DEFINED
#define GrUniformHandle_DEFINED

namespace {
inline int handle_to_index(GrGLUniformManager::UniformHandle h) { return ~h; }
inline GrGLUniformManager::UniformHandle index_to_handle(int i) { return ~i; }
}

#endif