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

Unified Diff: cc/output/begin_frame_args.h

Issue 423773002: Unified BeginFrame scheduling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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.h
diff --git a/cc/output/begin_frame_args.h b/cc/output/begin_frame_args.h
index b23a81e183a2180a90684cf92736d59ba3ba5804..40d33229d180289d741bf55b18b845850992c773 100644
--- a/cc/output/begin_frame_args.h
+++ b/cc/output/begin_frame_args.h
@@ -50,6 +50,18 @@ struct CC_EXPORT BeginFrameArgs {
scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const;
void AsValueInto(base::debug::TracedValue* dict) const;
+ bool operator==(const BeginFrameArgs& other) const {
mithro-old 2014/09/09 03:22:37 We have an operator== used just for testing in cc/
+ return (frame_time == other.frame_time &
brianderson 2014/09/04 18:45:45 & -> &&
+ deadline == other.deadline &&
+ interval == other.interval);
+ }
+
+ 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;
« no previous file with comments | « cc/cc.gyp ('k') | cc/output/output_surface.h » ('j') | cc/output/output_surface.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698