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

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

Issue 1922633002: Implement TransformFeedbackManager in GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/buffer_manager.cc ('k') | gpu/command_buffer/service/context_state.h » ('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 e27dd68827334cc6dfb6c656ea302a98114c35b7..00d74aad007fcafe8f0ad5c92977f31ed5a18861 100644
--- a/gpu/command_buffer/service/context_group.h
+++ b/gpu/command_buffer/service/context_group.h
@@ -198,31 +198,6 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
bool GetBufferServiceId(GLuint client_id, GLuint* service_id) const;
- void AddTransformFeedbackId(GLuint client_id, GLuint service_id) {
- transformfeedbacks_id_map_[client_id] = service_id;
- }
-
- bool GetTransformFeedbackServiceId(
- GLuint client_id, GLuint* service_id) const {
- if (client_id == 0) {
- // Default one.
- if (service_id)
- *service_id = 0;
- return true;
- }
- base::hash_map<GLuint, GLuint>::const_iterator iter =
- transformfeedbacks_id_map_.find(client_id);
- if (iter == transformfeedbacks_id_map_.end())
- return false;
- if (service_id)
- *service_id = iter->second;
- return true;
- }
-
- void RemoveTransformFeedbackId(GLuint client_id) {
- transformfeedbacks_id_map_.erase(client_id);
- }
-
void AddSyncId(GLuint client_id, GLsync service_id) {
syncs_id_map_[client_id] = service_id;
}
@@ -304,7 +279,6 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
std::vector<base::WeakPtr<gles2::GLES2Decoder> > decoders_;
// Mappings from client side IDs to service side IDs.
- base::hash_map<GLuint, GLuint> transformfeedbacks_id_map_;
base::hash_map<GLuint, GLsync> syncs_id_map_;
DISALLOW_COPY_AND_ASSIGN(ContextGroup);
« no previous file with comments | « gpu/command_buffer/service/buffer_manager.cc ('k') | gpu/command_buffer/service/context_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698