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

Unified Diff: services/gfx/compositor/graph/scene_label.cc

Issue 1873573003: Mozart: Ensure time always runs forward. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-3
Patch Set: Created 4 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: services/gfx/compositor/graph/scene_label.cc
diff --git a/services/gfx/compositor/graph/scene_label.cc b/services/gfx/compositor/graph/scene_label.cc
index b2955c589bc83d77b241eb066a304d0bfde260fb..a86222674b60c2318d7702a073a411b1824c6f26 100644
--- a/services/gfx/compositor/graph/scene_label.cc
+++ b/services/gfx/compositor/graph/scene_label.cc
@@ -22,18 +22,25 @@ std::string SceneLabel::FormattedLabel() const {
: base::StringPrintf("<S%d:%s>", token_, label_.c_str());
}
-std::string SceneLabel::FormattedLabelForVersion(uint32_t version) const {
- return label_.empty() ? base::StringPrintf("<S%d/%d>", token_, version)
- : base::StringPrintf("<S%d:%s/%d>", token_,
- label_.c_str(), version);
+std::string SceneLabel::FormattedLabelForVersion(
+ uint32_t version,
+ int64_t presentation_time) const {
+ return label_.empty()
+ ? base::StringPrintf("<S%d/v%d@%ld>", token_, version,
+ presentation_time)
+ : base::StringPrintf("<S%d:%s/v%d@%ld>", token_, label_.c_str(),
+ version, presentation_time);
}
std::string SceneLabel::FormattedLabelForNode(uint32_t version,
+ int64_t presentation_time,
uint32_t node_id) const {
return label_.empty()
- ? base::StringPrintf("<S%d/%d>[%d]", token_, version, node_id)
- : base::StringPrintf("<S%d:%s/%d>[%d]", token_, label_.c_str(),
- version, node_id);
+ ? base::StringPrintf("<S%d/v%d@%ld>[#%d]", token_, version,
+ presentation_time, node_id)
+ : base::StringPrintf("<S%d:%s/v%d@%ld>[#%d]", token_,
+ label_.c_str(), version, presentation_time,
+ node_id);
}
} // namespace compositor

Powered by Google App Engine
This is Rietveld 408576698