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

Unified Diff: gpu/command_buffer/service/context_group.h

Issue 2317363005: Add basic GL functionality to the passthrough command buffer. (Closed)
Patch Set: Handle bind_generates_resource Created 4 years, 3 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/client_service_map.h ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/context_group.h
diff --git a/gpu/command_buffer/service/context_group.h b/gpu/command_buffer/service/context_group.h
index db0381ead12333e3aa381453cee1cf0dba28ce94..43f2d4124083101c4ad59590ed0826bcb283df18 100644
--- a/gpu/command_buffer/service/context_group.h
+++ b/gpu/command_buffer/service/context_group.h
@@ -44,6 +44,7 @@ class ShaderManager;
class TextureManager;
class MemoryTracker;
struct DisallowedFeatures;
+struct PassthroughResources;
// A Context Group helps manage multiple GLES2Decoders that share
// resources.
@@ -220,6 +221,10 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
syncs_id_map_.erase(client_id);
}
+ PassthroughResources* passthrough_resources() const {
+ return passthrough_resources_.get();
+ }
+
private:
friend class base::RefCounted<ContextGroup>;
~ContextGroup();
@@ -287,6 +292,8 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
// Mappings from client side IDs to service side IDs.
base::hash_map<GLuint, GLsync> syncs_id_map_;
+ std::unique_ptr<PassthroughResources> passthrough_resources_;
+
DISALLOW_COPY_AND_ASSIGN(ContextGroup);
};
« no previous file with comments | « gpu/command_buffer/service/client_service_map.h ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698