chromium/gpu/command_buffer/common/id_allocator.h

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This file contains the definition of the IdAllocator class.

#ifndef GPU_COMMAND_BUFFER_COMMON_ID_ALLOCATOR_H_
#define GPU_COMMAND_BUFFER_COMMON_ID_ALLOCATOR_H_

#include <stdint.h>

#include <map>
#include <utility>

#include "base/compiler_specific.h"
#include "gpu/gpu_export.h"

namespace gpu {

// A resource ID, key to the resource maps.
ResourceId;
// Invalid resource ID.
static const ResourceId kInvalidResource =;

// A class to manage the allocation of resource IDs.
class GPU_EXPORT IdAllocator {};

}  // namespace gpu

#endif  // GPU_COMMAND_BUFFER_COMMON_ID_ALLOCATOR_H_