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

Unified Diff: cc/test/test_web_graphics_context_3d.cc

Issue 1974163003: Expose GpuMemoryBufferId through glGetImageivCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test. Created 4 years, 7 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/test/test_web_graphics_context_3d.h ('k') | components/mus/gles2/command_buffer_local.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2641c9011d75132b7298529a8d2be44f39350a22..ba29b422988508e47c6ad420c968833bbb1e188b 100644
--- a/cc/test/test_web_graphics_context_3d.cc
+++ b/cc/test/test_web_graphics_context_3d.cc
@@ -639,6 +639,15 @@ GLuint TestWebGraphicsContext3D::createGpuMemoryBufferImageCHROMIUM(
return image_id;
}
+void TestWebGraphicsContext3D::getImageivCHROMIUM(GLuint image_id,
+ GLenum param,
+ GLint* data) {
+ DCHECK_EQ(GL_GPU_MEMORY_BUFFER_ID, static_cast<int>(param));
+ base::AutoLock lock(namespace_->lock);
+ std::unordered_set<unsigned>& images = namespace_->images;
+ *data = images.find(image_id) == images.end() ? -1 : 1;
+}
+
GLuint64 TestWebGraphicsContext3D::insertFenceSync() {
return next_insert_fence_sync_++;
}
« no previous file with comments | « cc/test/test_web_graphics_context_3d.h ('k') | components/mus/gles2/command_buffer_local.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698