Index: cc/scheduler/begin_frame_source.cc |
diff --git a/cc/scheduler/begin_frame_source.cc b/cc/scheduler/begin_frame_source.cc |
index 9b200e969cfb0ef79423b939cb5dfbede969cc9c..42b8f6f1c735db05dfca52c00ed6070bb8b63a36 100644 |
--- a/cc/scheduler/begin_frame_source.cc |
+++ b/cc/scheduler/begin_frame_source.cc |
@@ -53,7 +53,7 @@ void BeginFrameObserverMixIn::OnBeginFrame(const BeginFrameArgs& args) { |
} |
void BeginFrameObserverMixIn::AsValueInto( |
- base::debug::TracedValue* dict) const { |
+ base::trace_event::TracedValue* dict) const { |
dict->BeginDictionary("last_begin_frame_args_"); |
last_begin_frame_args_.AsValueInto(dict); |
dict->EndDictionary(); |
@@ -117,7 +117,8 @@ void BeginFrameSourceMixIn::CallOnBeginFrame(const BeginFrameArgs& args) { |
} |
// Tracing support |
-void BeginFrameSourceMixIn::AsValueInto(base::debug::TracedValue* dict) const { |
+void BeginFrameSourceMixIn::AsValueInto( |
+ base::trace_event::TracedValue* dict) const { |
// As the observer might try to trace the source, prevent an infinte loop |
// from occuring. |
if (inside_as_value_into_) { |
@@ -198,7 +199,7 @@ void BackToBackBeginFrameSource::DidFinishFrame(size_t remaining_frames) { |
// Tracing support |
void BackToBackBeginFrameSource::AsValueInto( |
- base::debug::TracedValue* dict) const { |
+ base::trace_event::TracedValue* dict) const { |
dict->SetString("type", "BackToBackBeginFrameSource"); |
BeginFrameSourceMixIn::AsValueInto(dict); |
dict->SetBoolean("send_begin_frame_posted_", send_begin_frame_posted_); |
@@ -264,13 +265,9 @@ void SyntheticBeginFrameSource::OnNeedsBeginFramesChange( |
} |
} |
-bool SyntheticBeginFrameSource::NeedsBeginFrames() const { |
- return time_source_->Active(); |
-} |
- |
// Tracing support |
void SyntheticBeginFrameSource::AsValueInto( |
- base::debug::TracedValue* dict) const { |
+ base::trace_event::TracedValue* dict) const { |
dict->SetString("type", "SyntheticBeginFrameSource"); |
BeginFrameSourceMixIn::AsValueInto(dict); |
@@ -406,14 +403,6 @@ const BeginFrameArgs BeginFrameSourceMultiplexer::LastUsedBeginFrameArgs() |
} |
// BeginFrameSource support |
-bool BeginFrameSourceMultiplexer::NeedsBeginFrames() const { |
- if (active_source_) { |
- return active_source_->NeedsBeginFrames(); |
- } else { |
- return false; |
- } |
-} |
- |
void BeginFrameSourceMultiplexer::OnNeedsBeginFramesChange( |
bool needs_begin_frames) { |
DEBUG_FRAMES("BeginFrameSourceMultiplexer::OnNeedsBeginFramesChange", |
@@ -439,7 +428,7 @@ void BeginFrameSourceMultiplexer::DidFinishFrame(size_t remaining_frames) { |
// Tracing support |
void BeginFrameSourceMultiplexer::AsValueInto( |
- base::debug::TracedValue* dict) const { |
+ base::trace_event::TracedValue* dict) const { |
dict->SetString("type", "BeginFrameSourceMultiplexer"); |
dict->SetInteger("minimum_interval_us", minimum_interval_.InMicroseconds()); |