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

Unified Diff: cc/debug/ordered_texture_map.cc

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, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/debug/ordered_texture_map.h ('k') | cc/debug/test_context_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/ordered_texture_map.cc
diff --git a/cc/debug/ordered_texture_map.cc b/cc/debug/ordered_texture_map.cc
deleted file mode 100644
index 5727defb630a8c645c9b8d977dbcf296f844df47..0000000000000000000000000000000000000000
--- a/cc/debug/ordered_texture_map.cc
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2013 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.
-
-#include "cc/debug/ordered_texture_map.h"
-
-#include "base/logging.h"
-#include "cc/debug/test_texture.h"
-
-namespace cc {
-
-OrderedTextureMap::OrderedTextureMap() {}
-
-OrderedTextureMap::~OrderedTextureMap() {}
-
-void OrderedTextureMap::Append(WebKit::WebGLId id,
- scoped_refptr<TestTexture> texture) {
- DCHECK(texture.get());
- DCHECK(!ContainsId(id));
-
- textures_[id] = texture;
- ordered_textures_.push_back(id);
-}
-
-void OrderedTextureMap::Replace(WebKit::WebGLId id,
- scoped_refptr<TestTexture> texture) {
- DCHECK(texture.get());
- DCHECK(ContainsId(id));
-
- textures_[id] = texture;
-}
-
-void OrderedTextureMap::Remove(WebKit::WebGLId id) {
- TextureMap::iterator map_it = textures_.find(id);
- DCHECK(map_it != textures_.end());
- textures_.erase(map_it);
-
- TextureList::iterator list_it =
- std::find(ordered_textures_.begin(), ordered_textures_.end(), id);
- DCHECK(list_it != ordered_textures_.end());
- ordered_textures_.erase(list_it);
-}
-
-size_t OrderedTextureMap::Size() { return ordered_textures_.size(); }
-
-bool OrderedTextureMap::ContainsId(WebKit::WebGLId id) {
- return textures_.find(id) != textures_.end();
-}
-
-scoped_refptr<TestTexture> OrderedTextureMap::TextureForId(WebKit::WebGLId id) {
- DCHECK(ContainsId(id));
- scoped_refptr<TestTexture> texture = textures_[id];
- DCHECK(texture.get());
- return texture;
-}
-
-WebKit::WebGLId OrderedTextureMap::IdAt(size_t index) {
- DCHECK(index < Size());
- return ordered_textures_[index];
-}
-
-} // namespace cc
« no previous file with comments | « cc/debug/ordered_texture_map.h ('k') | cc/debug/test_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698