diff options
Diffstat (limited to 'cc/output')
-rw-r--r-- | cc/output/begin_frame_args.cc | 8 | ||||
-rw-r--r-- | cc/output/begin_frame_args.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/cc/output/begin_frame_args.cc b/cc/output/begin_frame_args.cc index c50d5f8..98f0a3e 100644 --- a/cc/output/begin_frame_args.cc +++ b/cc/output/begin_frame_args.cc @@ -98,12 +98,12 @@ BeginFrameArgs BeginFrameArgs::Create(BeginFrameArgs::CreationLocation location, #endif } -scoped_refptr<base::trace_event::ConvertableToTraceFormat> +scoped_ptr<base::trace_event::ConvertableToTraceFormat> BeginFrameArgs::AsValue() const { - scoped_refptr<base::trace_event::TracedValue> state = - new base::trace_event::TracedValue(); + scoped_ptr<base::trace_event::TracedValue> state( + new base::trace_event::TracedValue()); AsValueInto(state.get()); - return state; + return std::move(state); } void BeginFrameArgs::AsValueInto(base::trace_event::TracedValue* state) const { diff --git a/cc/output/begin_frame_args.h b/cc/output/begin_frame_args.h index 1f6bc36..6d85b40 100644 --- a/cc/output/begin_frame_args.h +++ b/cc/output/begin_frame_args.h @@ -82,7 +82,7 @@ struct CC_EXPORT BeginFrameArgs { bool IsValid() const { return interval >= base::TimeDelta(); } - scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; + scoped_ptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; void AsValueInto(base::trace_event::TracedValue* dict) const; void ToProtobuf(proto::BeginFrameArgs* proto) const; |