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

Unified Diff: cc/surfaces/surface_factory_unittest.cc

Issue 2585543003: Revert 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 3e7e25e2de81fc0f08d7d14eacd363b34f99cd47..a4a34094861f8b244e8958e511226c6db38f74b7 100644
--- a/cc/surfaces/surface_factory_unittest.cc
+++ b/cc/surfaces/surface_factory_unittest.cc
@@ -8,7 +8,6 @@
#include <stdint.h>
#include <utility>
-#include <vector>
#include "base/bind.h"
#include "base/macros.h"
@@ -526,9 +525,11 @@
factory2->EvictSurface();
CompositorFrame frame;
+ frame.metadata.satisfies_sequences.push_back(6);
+ frame.metadata.satisfies_sequences.push_back(4);
DCHECK(manager_.GetSurfaceForId(id2));
- std::vector<uint32_t> sequences = {4, 6};
- manager_.DidSatisfySequences(kArbitraryFrameSinkId, &sequences);
+ factory_->SubmitCompositorFrame(local_frame_id_, std::move(frame),
+ SurfaceFactory::DrawCallback());
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