Chromium Code Reviews| Index: cc/output/begin_frame_args.h |
| diff --git a/cc/output/begin_frame_args.h b/cc/output/begin_frame_args.h |
| index ba29523983bfddd259404667e979035e26ea247a..c3c0461eb37a03f07773039bbe90bccfe4a712e3 100644 |
| --- a/cc/output/begin_frame_args.h |
| +++ b/cc/output/begin_frame_args.h |
| @@ -83,6 +83,15 @@ struct CC_EXPORT BeginFrameArgs { |
| scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const; |
| void AsValueInto(base::debug::TracedValue* dict) const; |
| + bool operator==(const BeginFrameArgs& other) const { |
| + return (frame_time == other.frame_time && deadline == other.deadline && |
| + interval == other.interval); |
|
brianderson
2014/12/09 03:00:31
Probably should include "type" in the checks here.
simonhong
2014/12/09 17:09:27
Done.
|
| + } |
| + bool operator!=(const BeginFrameArgs& other) const { |
| + return (frame_time != other.frame_time || deadline != other.deadline || |
| + interval != other.interval); |
| + } |
| + |
| base::TimeTicks frame_time; |
| base::TimeTicks deadline; |
| base::TimeDelta interval; |