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

Unified Diff: cc/output/begin_frame_args.cc

Issue 1165853002: Pipe impl_latency_takes_priority_ to the RenderScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made the flag default Created 5 years, 6 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: cc/output/begin_frame_args.cc
diff --git a/cc/output/begin_frame_args.cc b/cc/output/begin_frame_args.cc
index 4b43d94afe59c4388d2fb75a16478906faf50f78..216eb52587af2c5d5e509d4b11af8aa5b4989b85 100644
--- a/cc/output/begin_frame_args.cc
+++ b/cc/output/begin_frame_args.cc
@@ -27,7 +27,8 @@ BeginFrameArgs::BeginFrameArgs()
: frame_time(base::TimeTicks()),
deadline(base::TimeTicks()),
interval(base::TimeDelta::FromMicroseconds(-1)),
- type(BeginFrameArgs::INVALID) {
+ type(BeginFrameArgs::INVALID),
+ on_critical_path(true) {
}
BeginFrameArgs::BeginFrameArgs(base::TimeTicks frame_time,
@@ -37,7 +38,8 @@ BeginFrameArgs::BeginFrameArgs(base::TimeTicks frame_time,
: frame_time(frame_time),
deadline(deadline),
interval(interval),
- type(type) {
+ type(type),
+ on_critical_path(true) {
}
BeginFrameArgs BeginFrameArgs::Create(BeginFrameArgs::CreationLocation location,
@@ -73,6 +75,7 @@ void BeginFrameArgs::AsValueInto(base::trace_event::TracedValue* state) const {
#ifndef NDEBUG
state->SetString("created_from", created_from.ToString());
#endif
+ state->SetBoolean("on_critical_path", on_critical_path);
}
// This is a hard-coded deadline adjustment that assumes 60Hz, to be used in

Powered by Google App Engine
This is Rietveld 408576698