Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: cc/debug/ordered_texture_map.h

Issue 50303007: Move test-only stuff from cc/debug/ to cc/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fold cc_test_utils into cc_test_support to fix windows link Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/debug/fake_web_graphics_context_3d.cc ('k') | cc/debug/ordered_texture_map.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_DEBUG_ORDERED_TEXTURE_MAP_H_
6 #define CC_DEBUG_ORDERED_TEXTURE_MAP_H_
7
8 #include <vector>
9
10 #include "base/containers/hash_tables.h"
11 #include "base/memory/ref_counted.h"
12 #include "cc/base/cc_export.h"
13 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
14
15 namespace cc {
16
17 struct TestTexture;
18
19 class CC_EXPORT OrderedTextureMap {
20 public:
21 OrderedTextureMap();
22 ~OrderedTextureMap();
23
24 void Append(WebKit::WebGLId id, scoped_refptr<TestTexture> texture);
25 void Replace(WebKit::WebGLId id, scoped_refptr<TestTexture> texture);
26 void Remove(WebKit::WebGLId id);
27
28 size_t Size();
29
30 bool ContainsId(WebKit::WebGLId id);
31
32 scoped_refptr<TestTexture> TextureForId(WebKit::WebGLId id);
33 WebKit::WebGLId IdAt(size_t index);
34
35 private:
36 typedef base::hash_map<WebKit::WebGLId, scoped_refptr<TestTexture> >
37 TextureMap;
38 typedef std::vector<WebKit::WebGLId> TextureList;
39
40 TextureMap textures_;
41 TextureList ordered_textures_;
42 };
43
44 } // namespace cc
45
46 #endif // CC_DEBUG_ORDERED_TEXTURE_MAP_H_
OLDNEW
« no previous file with comments | « cc/debug/fake_web_graphics_context_3d.cc ('k') | cc/debug/ordered_texture_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698