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

Unified Diff: gpu/command_buffer/client/query_tracker.h

Issue 1131913004: More compact representation of the GL Query cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: And unittest Created 5 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 | « no previous file | gpu/command_buffer/client/query_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/query_tracker.h
diff --git a/gpu/command_buffer/client/query_tracker.h b/gpu/command_buffer/client/query_tracker.h
index 72e29e71c421b007b0a9405c6fad615c551dc6e3..cccccf55f3b65ff26b27f7bc042b91fd2017427f 100644
--- a/gpu/command_buffer/client/query_tracker.h
+++ b/gpu/command_buffer/client/query_tracker.h
@@ -9,6 +9,7 @@
#include <deque>
#include <list>
+#include <vector>
#include "base/atomicops.h"
#include "base/containers/hash_tables.h"
@@ -30,12 +31,12 @@ class GLES2_IMPL_EXPORT QuerySyncManager {
static const size_t kSyncsPerBucket = 4096;
struct Bucket {
- explicit Bucket(QuerySync* sync_mem)
- : syncs(sync_mem),
- used_query_count(0) {
- }
+ Bucket(QuerySync* sync_mem, int32 shm_id, uint32 shm_offset);
+ ~Bucket();
QuerySync* syncs;
- unsigned used_query_count;
+ int32 shm_id;
+ uint32 base_shm_offset;
+ std::vector<unsigned short> free_queries;
};
struct QueryInfo {
QueryInfo(Bucket* bucket, int32 id, uint32 offset, QuerySync* sync_mem)
@@ -68,7 +69,6 @@ class GLES2_IMPL_EXPORT QuerySyncManager {
private:
MappedMemoryManager* mapped_memory_;
std::deque<Bucket*> buckets_;
- std::deque<QueryInfo> free_queries_;
DISALLOW_COPY_AND_ASSIGN(QuerySyncManager);
};
« no previous file with comments | « no previous file | gpu/command_buffer/client/query_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698