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: components/mus/gles2/command_buffer_local.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
Index: components/mus/gles2/command_buffer_local.cc
diff --git a/components/mus/gles2/command_buffer_local.cc b/components/mus/gles2/command_buffer_local.cc
index 971ccec6eb7fb49c2589662779465d63e457b147..b00f5ebb966ac254af1cedc9409bf1cb5d15e6fc 100644
--- a/components/mus/gles2/command_buffer_local.cc
+++ b/components/mus/gles2/command_buffer_local.cc
@@ -309,6 +309,14 @@ int32_t CommandBufferLocal::CreateGpuMemoryBufferImage(size_t width,
return CreateImage(buffer->AsClientBuffer(), width, height, internal_format);
}
+int32_t CommandBufferLocal::GetImageGpuMemoryBufferId(unsigned image_id) {
+ // TODO(erikchen): Once this class supports IOSurface GpuMemoryBuffer backed
+ // images, it will also need to keep a local cache from image id to
+ // GpuMemoryBuffer id.
+ NOTIMPLEMENTED();
+ return -1;
+}
+
void CommandBufferLocal::SignalQuery(uint32_t query_id,
const base::Closure& callback) {
DCHECK(CalledOnValidThread());
« no previous file with comments | « components/mus/gles2/command_buffer_local.h ('k') | components/mus/public/cpp/lib/command_buffer_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698