summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/id_manager.h
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-13 20:48:37 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-13 20:48:37 +0000
commitc439dc1f780f967817c917ed53cb1c39635092c0 (patch)
treef5d3dfa8bb7c6d0cc512dae7b9e52c887c755037 /gpu/command_buffer/service/id_manager.h
parentfc1c65126789db24d564231d6b5ac63a736fb864 (diff)
downloadchromium_src-c439dc1f780f967817c917ed53cb1c39635092c0.zip
chromium_src-c439dc1f780f967817c917ed53cb1c39635092c0.tar.gz
chromium_src-c439dc1f780f967817c917ed53cb1c39635092c0.tar.bz2
Switch most usages of std::map to base::hash_table in GPU service.
TEST=unit tests pass BUG=none R=apatrick@chromium.org Review URL: http://codereview.chromium.org/7013039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85317 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/id_manager.h')
-rw-r--r--gpu/command_buffer/service/id_manager.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/gpu/command_buffer/service/id_manager.h b/gpu/command_buffer/service/id_manager.h
index 25e6ac0..3668534 100644
--- a/gpu/command_buffer/service/id_manager.h
+++ b/gpu/command_buffer/service/id_manager.h
@@ -1,12 +1,12 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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_SERVICE_ID_MANAGER_H_
#define GPU_COMMAND_BUFFER_SERVICE_ID_MANAGER_H_
-#include <map>
#include "base/basictypes.h"
+#include "base/hash_tables.h"
#include "gpu/command_buffer/service/gl_utils.h"
namespace gpu {
@@ -37,8 +37,7 @@ class IdManager {
bool GetClientId(GLuint service_id, GLuint* client_id);
private:
- // TODO(gman): Replace with faster implementation.
- typedef std::map<GLuint, GLuint> MapType;
+ typedef base::hash_map<GLuint, GLuint> MapType;
MapType id_map_;
DISALLOW_COPY_AND_ASSIGN(IdManager);