Home | History | Annotate | Download | only in gl
      1 /*
      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 
     11 namespace {
     12 inline int handle_to_index(GrGLUniformManager::UniformHandle h) { return ~h; }
     13 inline GrGLUniformManager::UniformHandle index_to_handle(int i) { return ~i; }
     14 }
     15 
     16 #endif
     17