OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_TEST_ORDERED_TEXTURE_MAP_H_ | 5 #ifndef CC_TEST_ORDERED_TEXTURE_MAP_H_ |
6 #define CC_TEST_ORDERED_TEXTURE_MAP_H_ | 6 #define CC_TEST_ORDERED_TEXTURE_MAP_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 void Remove(GLuint id); | 25 void Remove(GLuint id); |
26 | 26 |
27 size_t Size(); | 27 size_t Size(); |
28 | 28 |
29 bool ContainsId(GLuint id); | 29 bool ContainsId(GLuint id); |
30 | 30 |
31 scoped_refptr<TestTexture> TextureForId(GLuint id); | 31 scoped_refptr<TestTexture> TextureForId(GLuint id); |
32 GLuint IdAt(size_t index); | 32 GLuint IdAt(size_t index); |
33 | 33 |
34 private: | 34 private: |
35 typedef base::hash_map<GLuint, scoped_refptr<TestTexture> > | 35 typedef base::hash_map<GLuint, scoped_refptr<TestTexture>> TextureMap; |
36 TextureMap; | |
37 typedef std::vector<GLuint> TextureList; | 36 typedef std::vector<GLuint> TextureList; |
38 | 37 |
39 TextureMap textures_; | 38 TextureMap textures_; |
40 TextureList ordered_textures_; | 39 TextureList ordered_textures_; |
41 }; | 40 }; |
42 | 41 |
43 } // namespace cc | 42 } // namespace cc |
44 | 43 |
45 #endif // CC_TEST_ORDERED_TEXTURE_MAP_H_ | 44 #endif // CC_TEST_ORDERED_TEXTURE_MAP_H_ |
OLD | NEW |