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

Unified Diff: cc/test/test_web_graphics_context_3d.cc

Issue 635543002: cc: Make ResourceProvider use bindless Produce/ConsumeTextureCHROMIUM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove redundant func. Created 5 years, 10 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
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 8aa392de290b6d7301b9d79d4ed6559d9f5a7f94..60d0e2d9778ea696a31175eb1aec2f94013bad9c 100644
--- a/cc/test/test_web_graphics_context_3d.cc
+++ b/cc/test/test_web_graphics_context_3d.cc
@@ -356,6 +356,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));
}
@@ -466,7 +473,9 @@ void TestWebGraphicsContext3D::genMailboxCHROMIUM(GLbyte* mailbox) {
GLuint TestWebGraphicsContext3D::createAndConsumeTextureCHROMIUM(
GLenum target,
const GLbyte* mailbox) {
- return createTexture();
+ GLuint texture_id = createTexture();
+ consumeTextureCHROMIUM(target, mailbox);
+ return texture_id;
}
void TestWebGraphicsContext3D::loseContextCHROMIUM(GLenum current,

Powered by Google App Engine
This is Rietveld 408576698