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

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h

Issue 2517383004: [scheduler] Bunch of improvements for blink scheduler tracing (Closed)
Patch Set: Some more Created 4 years, 1 month 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: third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h b/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h
index bc0c3d61673941d281a437980f1da94c676af044..1d06accd17f8c55ca3223a343d66ab9395dcf01a 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h
@@ -201,6 +201,8 @@ class BLINK_PLATFORM_EXPORT RendererSchedulerImpl
VIRTUAL,
};
+ static const char* TimeDomainTypeToString(TimeDomainType domain_type);
+
struct TaskQueuePolicy {
TaskQueuePolicy()
: is_enabled(true),
@@ -215,6 +217,8 @@ class BLINK_PLATFORM_EXPORT RendererSchedulerImpl
return is_enabled == other.is_enabled && priority == other.priority &&
time_domain_type == other.time_domain_type;
}
+
+ void AsValueInto(base::trace_event::TracedValue* state) const;
};
struct Policy {
@@ -233,6 +237,8 @@ class BLINK_PLATFORM_EXPORT RendererSchedulerImpl
rail_mode == other.rail_mode &&
should_disable_throttling == other.should_disable_throttling;
}
+
+ void AsValueInto(base::trace_event::TracedValue* state) const;
};
class PollableNeedsUpdateFlag {

Powered by Google App Engine
This is Rietveld 408576698