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

Unified Diff: gpu/command_buffer/service/texture_manager_unittest.cc

Issue 15798014: Replace context parenting by sharing through mailboxes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 | « gpu/command_buffer/service/texture_manager.cc ('k') | gpu/command_buffer/tests/gl_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/texture_manager_unittest.cc
diff --git a/gpu/command_buffer/service/texture_manager_unittest.cc b/gpu/command_buffer/service/texture_manager_unittest.cc
index 758f421150bd6ca35df830080cdfec1a2d5dfc03..b5c409a40c5591c5512bc4d2aa4da4c8b9ff7fdd 100644
--- a/gpu/command_buffer/service/texture_manager_unittest.cc
+++ b/gpu/command_buffer/service/texture_manager_unittest.cc
@@ -205,29 +205,6 @@ TEST_F(TextureManagerTest, Destroy) {
ASSERT_TRUE(texture == NULL);
}
-TEST_F(TextureManagerTest, DestroyUnowned) {
- const GLuint kClient1Id = 1;
- const GLuint kService1Id = 11;
- TestHelper::SetupTextureManagerInitExpectations(gl_.get(), "");
- TextureManager manager(
- NULL, feature_info_.get(), kMaxTextureSize, kMaxCubeMapTextureSize);
- manager.Initialize();
- // Check we can create texture.
- TextureRef* created_texture =
- manager.CreateTexture(kClient1Id, kService1Id);
- created_texture->texture()->SetNotOwned();
-
- // Check texture got created.
- TextureRef* texture = manager.GetTexture(kClient1Id);
- ASSERT_TRUE(texture != NULL);
-
- // Check that it is not freed if it is not owned.
- TestHelper::SetupTextureManagerDestructionExpectations(gl_.get(), "");
- manager.Destroy(true);
- texture = manager.GetTexture(kClient1Id);
- ASSERT_TRUE(texture == NULL);
-}
-
TEST_F(TextureManagerTest, MaxValues) {
// Check we get the right values for the max sizes.
EXPECT_EQ(kMax2dLevels, manager_->MaxLevelsForTarget(GL_TEXTURE_2D));
« no previous file with comments | « gpu/command_buffer/service/texture_manager.cc ('k') | gpu/command_buffer/tests/gl_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698