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

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: fix build error on Android 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
« no previous file with comments | « services/gfx/compositor/graph/scene_label.h ('k') | services/gfx/compositor/graph/snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a71140c26e08d1b99c45f8b7138c42aa2b1d4bcd 100644
--- a/services/gfx/compositor/graph/scene_label.cc
+++ b/services/gfx/compositor/graph/scene_label.cc
@@ -4,6 +4,8 @@
#include "services/gfx/compositor/graph/scene_label.h"
+#include <cinttypes>
+
#include "base/strings/stringprintf.h"
namespace compositor {
@@ -22,18 +24,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@%" PRId64 ">", token_, version,
+ presentation_time)
+ : base::StringPrintf("<S%d:%s/v%d@%" PRId64 ">", 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@%" PRId64 ">[#%d]", token_, version,
+ presentation_time, node_id)
+ : base::StringPrintf("<S%d:%s/v%d@%" PRId64 ">[#%d]", token_,
+ label_.c_str(), version, presentation_time,
+ node_id);
}
} // namespace compositor
« no previous file with comments | « services/gfx/compositor/graph/scene_label.h ('k') | services/gfx/compositor/graph/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698