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

Unified Diff: cc/surfaces/surface_factory_unittest.cc

Issue 2583803002: Reland of Getting rid of CompositorFrameMetadata::satisfies_sequences (Closed)
Patch Set: Created 4 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/surfaces/surface.cc ('k') | cc/surfaces/surface_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_factory_unittest.cc
diff --git a/cc/surfaces/surface_factory_unittest.cc b/cc/surfaces/surface_factory_unittest.cc
index a4a34094861f8b244e8958e511226c6db38f74b7..3e7e25e2de81fc0f08d7d14eacd363b34f99cd47 100644
--- a/cc/surfaces/surface_factory_unittest.cc
+++ b/cc/surfaces/surface_factory_unittest.cc
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <utility>
+#include <vector>
#include "base/bind.h"
#include "base/macros.h"
@@ -525,11 +526,9 @@
factory2->EvictSurface();
CompositorFrame frame;
- frame.metadata.satisfies_sequences.push_back(6);
- frame.metadata.satisfies_sequences.push_back(4);
DCHECK(manager_.GetSurfaceForId(id2));
- factory_->SubmitCompositorFrame(local_frame_id_, std::move(frame),
- SurfaceFactory::DrawCallback());
+ std::vector<uint32_t> sequences = {4, 6};
+ manager_.DidSatisfySequences(kArbitraryFrameSinkId, &sequences);
DCHECK(!manager_.GetSurfaceForId(id2));
// Check that waiting after the sequence is satisfied works.
« no previous file with comments | « cc/surfaces/surface.cc ('k') | cc/surfaces/surface_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698