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

Unified Diff: cc/output/begin_frame_args.cc

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/output/begin_frame_args.h ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/begin_frame_args.cc
diff --git a/cc/output/begin_frame_args.cc b/cc/output/begin_frame_args.cc
index 5744d9dbe843d8e7fff46927f25c4536ddc4090c..786f41ac322db02383835635c1f8d9608c868732 100644
--- a/cc/output/begin_frame_args.cc
+++ b/cc/output/begin_frame_args.cc
@@ -19,6 +19,8 @@ const char* BeginFrameArgs::TypeToString(BeginFrameArgsType type) {
return "SYNCHRONOUS";
case BeginFrameArgs::MISSED:
return "MISSED";
+ case BeginFrameArgs::BEGIN_FRAME_ARGS_TYPE_MAX:
+ return "BEGIN_FRAME_ARGS_TYPE_MAX";
}
NOTREACHED();
return "???";
@@ -47,6 +49,7 @@ BeginFrameArgs BeginFrameArgs::Create(BeginFrameArgs::CreationLocation location,
base::TimeDelta interval,
BeginFrameArgs::BeginFrameArgsType type) {
DCHECK_NE(type, BeginFrameArgs::INVALID);
+ DCHECK_NE(type, BeginFrameArgs::BEGIN_FRAME_ARGS_TYPE_MAX);
#ifdef NDEBUG
return BeginFrameArgs(frame_time, deadline, interval, type);
#else
« no previous file with comments | « cc/output/begin_frame_args.h ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698