summaryrefslogtreecommitdiff
path: root/chromium/gpu/command_buffer/client/hash_tables.h
blob: fff3098dea6ce54e8119f32ab65f691ca074cfdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef GPU_COMMAND_BUFFER_CLIENT_HASH_TABLES_H_
#define GPU_COMMAND_BUFFER_CLIENT_HASH_TABLES_H_

#if defined(__native_client__)
#include <tr1/unordered_map>
namespace gpu {
template <typename key, typename value>
struct hash_map : public std::tr1::unordered_map<key, value> {
};
}
#else
#include "base/containers/hash_tables.h"
namespace gpu {
template <typename key, typename value>
struct hash_map : public base::hash_map<key, value> {
};
}
#endif

#endif  // GPU_COMMAND_BUFFER_CLIENT_HASH_TABLES_H_