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

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

Issue 116863003: gpu: Reuse transfer buffers more aggresively (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: [WIP] Review comments follow-up Created 6 years, 11 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: gpu/command_buffer/service/context_state.h
diff --git a/gpu/command_buffer/service/context_state.h b/gpu/command_buffer/service/context_state.h
index b0eeb7b6a1c4952ca5ce1de88800dc3d2a807441..51b97cb10429b725b7bfdae0b6648ad6dadfd3d0 100644
--- a/gpu/command_buffer/service/context_state.h
+++ b/gpu/command_buffer/service/context_state.h
@@ -149,7 +149,8 @@ struct GPU_EXPORT ContextState {
scoped_refptr<Renderbuffer> bound_renderbuffer;
// A map of of target -> Query for current queries
- typedef std::map<GLuint, scoped_refptr<QueryManager::Query> > QueryMap;
+ typedef std::pair<GLuint, bool> QueryKey;
+ typedef std::map<QueryKey, scoped_refptr<QueryManager::Query> > QueryMap;
QueryMap current_queries;
bool pack_reverse_row_order;

Powered by Google App Engine
This is Rietveld 408576698