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

Unified Diff: gpu/command_buffer/tests/gl_manager.h

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 | « gpu/command_buffer/service/in_process_command_buffer.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_manager.h
diff --git a/gpu/command_buffer/tests/gl_manager.h b/gpu/command_buffer/tests/gl_manager.h
index eb61cc73b7c7bb6e2f71dc3e5c512e403fd4f0da..e4fdaafa186878ad77e27a4810ab1cead2e15820 100644
--- a/gpu/command_buffer/tests/gl_manager.h
+++ b/gpu/command_buffer/tests/gl_manager.h
@@ -132,6 +132,7 @@ class GLManager : private GpuControl {
size_t height,
unsigned internalformat,
unsigned usage) override;
+ int32_t GetImageGpuMemoryBufferId(unsigned image_id) override;
void SignalQuery(uint32_t query, const base::Closure& callback) override;
void SetLock(base::Lock*) override;
void EnsureWorkVisible() override;
@@ -180,6 +181,9 @@ class GLManager : private GpuControl {
bool use_iosurface_memory_buffers_ = false;
+ // A map from image id to GpuMemoryBuffer id.
+ std::map<int32_t, int32_t> image_gmb_ids_map_;
+
// Used on Android to virtualize GL for all contexts.
static int use_count_;
static scoped_refptr<gl::GLShareGroup>* base_share_group_;
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698