Index: cc/test/compositor_frame_helpers.cc |
diff --git a/cc/test/compositor_frame_helpers.cc b/cc/test/compositor_frame_helpers.cc |
index 23cc993fb8b373fd5db95e10666892b95d6ffd7c..33e0ed63a1ee22d8b73dc58bb2dba0b61f4ea885 100644 |
--- a/cc/test/compositor_frame_helpers.cc |
+++ b/cc/test/compositor_frame_helpers.cc |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include "cc/test/compositor_frame_helpers.h" |
+ |
#include "cc/output/compositor_frame.h" |
namespace cc { |
@@ -25,5 +26,19 @@ CompositorFrame MakeEmptyCompositorFrame() { |
return frame; |
} |
+CompositorFrame MakeCompositorFrame( |
+ std::vector<SurfaceId> activation_dependencies, |
+ std::vector<SurfaceId> referenced_surfaces, |
+ TransferableResourceArray resource_list) { |
+ CompositorFrame compositor_frame = test::MakeCompositorFrame(); |
+ compositor_frame.metadata.begin_frame_ack = BeginFrameAck(0, 1, 1, true); |
+ compositor_frame.metadata.activation_dependencies = |
+ std::move(activation_dependencies); |
+ compositor_frame.metadata.referenced_surfaces = |
+ std::move(referenced_surfaces); |
+ compositor_frame.resource_list = std::move(resource_list); |
+ return compositor_frame; |
+} |
+ |
} // namespace test |
} // namespace cc |