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

Unified Diff: cc/output/begin_frame_args.h

Issue 548153004: Unified BeginFrame scheduling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format 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
« no previous file with comments | « cc/cc.gyp ('k') | cc/output/output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..393b209d022dfcff6f634b0b700b8f5e27226fa9 100644
--- a/cc/output/begin_frame_args.h
+++ b/cc/output/begin_frame_args.h
@@ -50,6 +50,16 @@ 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);
+ }
+
+ 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698