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

Unified Diff: cc/test/compositor_frame_helpers.cc

Issue 2802023002: Remove SurfaceFactory And SurfaceFactoryClient (Closed)
Patch Set: Rebase SurfaceSynchronizationTest Created 3 years, 7 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/test/compositor_frame_helpers.h ('k') | cc/test/mock_compositor_frame_sink_support_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « cc/test/compositor_frame_helpers.h ('k') | cc/test/mock_compositor_frame_sink_support_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698