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 ccca7db8c7617bd0c4b9663fa24418ca4e8235b8..cf3da93f9ff5084fcb968820b811f1c100dab575 100644 |
--- a/cc/test/test_web_graphics_context_3d.cc |
+++ b/cc/test/test_web_graphics_context_3d.cc |
@@ -336,6 +336,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)); |
} |