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

Unified Diff: cc/surfaces/surface_aggregator_perftest.cc

Issue 2834553002: Replace CompositorFrameSinkSupport::WillDrawSurface With RepeatingCallback (Closed)
Patch Set: Address Comments On Documentation 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
« no previous file with comments | « cc/surfaces/surface_aggregator.cc ('k') | cc/surfaces/surface_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_aggregator_perftest.cc
diff --git a/cc/surfaces/surface_aggregator_perftest.cc b/cc/surfaces/surface_aggregator_perftest.cc
index 691acfd9908d21c0b443e716afd67548af0c8d58..9743b20de55a8efae32c4de39db6c9074e61cefc 100644
--- a/cc/surfaces/surface_aggregator_perftest.cc
+++ b/cc/surfaces/surface_aggregator_perftest.cc
@@ -98,7 +98,8 @@ class SurfaceAggregatorPerfTest : public testing::Test {
frame.render_pass_list.push_back(std::move(pass));
child_factories[i]->SubmitCompositorFrame(
- local_surface_id, std::move(frame), SurfaceFactory::DrawCallback());
+ local_surface_id, std::move(frame), SurfaceFactory::DrawCallback(),
+ SurfaceFactory::WillDrawCallback());
}
SurfaceFactory root_factory(FrameSinkId(1, num_surfaces + 1), &manager_,
@@ -126,7 +127,7 @@ class SurfaceAggregatorPerfTest : public testing::Test {
root_factory.SubmitCompositorFrame(
LocalSurfaceId(num_surfaces + 1, kArbitraryToken), std::move(frame),
- SurfaceFactory::DrawCallback());
+ SurfaceFactory::DrawCallback(), SurfaceFactory::WillDrawCallback());
CompositorFrame aggregated = aggregator_->Aggregate(
SurfaceId(FrameSinkId(1, num_surfaces + 1),
« no previous file with comments | « cc/surfaces/surface_aggregator.cc ('k') | cc/surfaces/surface_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698