Index: cc/test/test_web_graphics_context_3d.cc |
diff --git a/cc/test/test_web_graphics_context_3d.cc b/cc/test/test_web_graphics_context_3d.cc |
index 9fae995ec6f8d8d1e6b813b9e7d6de23cfeb051f..731ce1489f8978fbd9c9a420d3b71ca3f8c8294e 100644 |
--- a/cc/test/test_web_graphics_context_3d.cc |
+++ b/cc/test/test_web_graphics_context_3d.cc |
@@ -335,6 +335,13 @@ scoped_refptr<TestTexture> TestWebGraphicsContext3D::BoundTexture( |
return namespace_->textures.TextureForId(BoundTextureId(target)); |
} |
+scoped_refptr<TestTexture> TestWebGraphicsContext3D::UnboundTexture( |
+ GLuint texture) { |
+ // The caller is expected to lock the namespace for texture access. |
+ namespace_->lock.AssertAcquired(); |
+ return namespace_->textures.TextureForId(texture); |
+} |
+ |
void TestWebGraphicsContext3D::CheckTextureIsBound(GLenum target) { |
DCHECK(BoundTextureId(target)); |
} |