| Index: gpu/command_buffer/client/hash_tables.h
|
| diff --git a/gpu/command_buffer/client/hash_tables.h b/gpu/command_buffer/client/hash_tables.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..33872bd6998166664cd43826c67f38454c21558f
|
| --- /dev/null
|
| +++ b/gpu/command_buffer/client/hash_tables.h
|
| @@ -0,0 +1,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/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_
|
|
|