2 // Copyright (c) 2002-2011 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
7 // HandleAllocator.h: Defines the gl::HandleAllocator class, which is used to
8 // allocate GL handles.
10 #ifndef LIBGLESV2_HANDLEALLOCATOR_H_
11 #define LIBGLESV2_HANDLEALLOCATOR_H_
13 #include "common/angleutils.h"
26 virtual ~HandleAllocator();
28 void setBaseHandle(GLuint value);
31 void release(GLuint handle);
34 DISALLOW_COPY_AND_ASSIGN(HandleAllocator);
38 typedef std::vector<GLuint> HandleList;
39 HandleList mFreeValues;
44 #endif // LIBGLESV2_HANDLEALLOCATOR_H_