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

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

Issue 228653004: Reduce the number of flushes while using glQueries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comment. Created 6 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
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 219f18665a3de11fda770c6bbea90f95572e6b10..72e29e71c421b007b0a9405c6fad615c551dc6e3 100644
--- a/gpu/command_buffer/client/query_tracker.h
+++ b/gpu/command_buffer/client/query_tracker.h
@@ -113,7 +113,6 @@ class GLES2_IMPL_EXPORT QueryTracker {
void MarkAsPending(int32 token) {
token_ = token;
state_ = kPending;
- flushed_ = false;
}
base::subtle::Atomic32 submit_count() const { return submit_count_; }
@@ -147,7 +146,7 @@ class GLES2_IMPL_EXPORT QueryTracker {
State state_;
base::subtle::Atomic32 submit_count_;
int32 token_;
- bool flushed_;
+ uint32 flush_count_;
uint64 client_begin_time_us_; // Only used for latency query target.
uint32 result_;
};
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_unittest.cc ('k') | gpu/command_buffer/client/query_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698