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

Unified Diff: gpu/command_buffer/common/sync_token.h

Issue 2440093003: WIP GPU scheduler + delayed activation / tile draw
Patch Set: SignalSyncToken -> IsFenceSyncReleased Created 4 years 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/common/preemption_flag.h ('k') | gpu/command_buffer/service/command_buffer_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/sync_token.h
diff --git a/gpu/command_buffer/common/sync_token.h b/gpu/command_buffer/common/sync_token.h
index 6a6bfad2a9a8ba2ef8ebcfdea5ba3cf26151ab2c..ad8233c09586265f27ee3ef28ee8f2124758c681 100644
--- a/gpu/command_buffer/common/sync_token.h
+++ b/gpu/command_buffer/common/sync_token.h
@@ -51,9 +51,7 @@ struct GPU_EXPORT SyncToken {
release_count_ = 0;
}
- void SetVerifyFlush() {
- verified_flush_ = true;
- }
+ void SetVerifyFlush() { verified_flush_ = true; }
bool HasData() const {
return namespace_id_ != CommandBufferNamespace::INVALID;
@@ -65,6 +63,12 @@ struct GPU_EXPORT SyncToken {
return reinterpret_cast<const int8_t*>(this);
}
+ bool IsEqual(const SyncToken& other) const {
+ return namespace_id_ == other.namespace_id() &&
+ command_buffer_id_ == other.command_buffer_id() &&
+ release_count_ == other.release_count();
+ }
+
bool verified_flush() const { return verified_flush_; }
CommandBufferNamespace namespace_id() const { return namespace_id_; }
CommandBufferId command_buffer_id() const { return command_buffer_id_; }
« no previous file with comments | « gpu/command_buffer/common/preemption_flag.h ('k') | gpu/command_buffer/service/command_buffer_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698