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

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

Issue 12211144: Revert 181883 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/query_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/query_manager.h
===================================================================
--- gpu/command_buffer/service/query_manager.h (revision 182062)
+++ gpu/command_buffer/service/query_manager.h (working copy)
@@ -89,21 +89,11 @@
submit_count_ = submit_count;
}
- void UnmarkAsPending() {
- DCHECK(pending_);
- pending_ = false;
- }
-
// Returns false if shared memory for sync is invalid.
bool AddToPendingQueue(uint32 submit_count) {
return manager_->AddPendingQuery(this, submit_count);
}
- // Returns false if shared memory for sync is invalid.
- bool AddToPendingTransferQueue(uint32 submit_count) {
- return manager_->AddPendingTransferQuery(this, submit_count);
- }
-
void BeginQueryHelper(GLenum target, GLuint id) {
manager_->BeginQueryHelper(target, id);
}
@@ -112,15 +102,15 @@
manager_->EndQueryHelper(target);
}
- uint32 submit_count() const {
- return submit_count_;
- }
-
private:
friend class QueryManager;
friend class QueryManagerTest;
friend class base::RefCounted<Query>;
+ uint32 submit_count() const {
+ return submit_count_;
+ }
+
// The manager that owns this Query.
QueryManager* manager_;
@@ -172,13 +162,6 @@
// True if there are pending queries.
bool HavePendingQueries();
- // Processes pending transfer queries. Returns false if any queries are
- // pointing to invalid shared memory.
- bool ProcessPendingTransferQueries();
-
- // True if there are pending transfer queries.
- bool HavePendingTransferQueries();
-
GLES2Decoder* decoder() const {
return decoder_;
}
@@ -196,10 +179,6 @@
// Returns false if any query is pointing to invalid shared memory.
bool AddPendingQuery(Query* query, uint32 submit_count);
- // Adds to queue of transfer queries waiting for completion.
- // Returns false if any query is pointing to invalid shared memory.
- bool AddPendingTransferQuery(Query* query, uint32 submit_count);
-
// Removes a query from the queue of pending queries.
// Returns false if any query is pointing to invalid shared memory.
bool RemovePendingQuery(Query* query);
@@ -226,9 +205,6 @@
typedef std::deque<Query::Ref> QueryQueue;
QueryQueue pending_queries_;
- // Async pixel transfer queries waiting for completion.
- QueryQueue pending_transfer_queries_;
-
DISALLOW_COPY_AND_ASSIGN(QueryManager);
};
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/query_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698