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

Unified Diff: cc/test/compositor_frame_helpers.cc

Issue 2835393003: Reject frames with invalid BeginFrameAck in CompositorFrameSinkSupport (Closed)
Patch Set: Fixed header Created 3 years, 8 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/test/compositor_frame_helpers.cc
diff --git a/cc/test/compositor_frame_helpers.cc b/cc/test/compositor_frame_helpers.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4cccf85caed05489cfe379e1598ff7c08257e183
--- /dev/null
+++ b/cc/test/compositor_frame_helpers.cc
@@ -0,0 +1,20 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "cc/test/compositor_frame_helpers.h"
+#include "cc/output/compositor_frame.h"
+
+namespace cc {
+namespace test {
+
+CompositorFrame MakeCompositorFrame() {
+ CompositorFrame frame;
+ frame.metadata.begin_frame_ack.source_id = BeginFrameArgs::kManualSourceId;
+ frame.metadata.begin_frame_ack.sequence_number =
+ BeginFrameArgs::kStartingFrameNumber;
+ return frame;
+}
+
+} // namespace test
+} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698