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

Unified Diff: cc/ipc/cc_serialization_perftest.cc

Issue 2190943002: cc serialization perf: Add a couple more tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/cc_serialization_perftest.cc
diff --git a/cc/ipc/cc_serialization_perftest.cc b/cc/ipc/cc_serialization_perftest.cc
index 9cfa3761836b8b300d9d0e8353c59f5caf603b4a..314e499169dcb9cfeedcd6e3722fba4c35f48475 100644
--- a/cc/ipc/cc_serialization_perftest.cc
+++ b/cc/ipc/cc_serialization_perftest.cc
@@ -279,6 +279,54 @@ TEST_F(CCSerializationPerfTest, DelegatedFrame_ManyQuads_100000_100000) {
RunTest("DelegatedFrame_ManyQuads_100000_100000", std::move(frame));
}
+TEST_F(CCSerializationPerfTest, DelegatedFrame_ManyRenderPasses_5_100) {
+ CompositorFrame frame;
+ frame.delegated_frame_data.reset(new DelegatedFrameData);
+
+ for (int i = 0; i < 5; ++i) {
+ std::unique_ptr<RenderPass> render_pass = RenderPass::Create();
+ render_pass->SetNew(RenderPassId(1, 1), gfx::Rect(), gfx::Rect(),
+ gfx::Transform());
+ for (int j = 0; j < 100; ++j) {
+ render_pass->CreateAndAppendSharedQuadState();
+ const gfx::Rect bounds(100, 100, 100, 100);
+ const bool kForceAntiAliasingOff = true;
+ SolidColorDrawQuad* quad =
+ render_pass->CreateAndAppendDrawQuad<SolidColorDrawQuad>();
+ quad->SetNew(render_pass->shared_quad_state_list.back(), bounds, bounds,
+ SK_ColorRED, kForceAntiAliasingOff);
+ }
+ frame.delegated_frame_data->render_pass_list.push_back(
+ std::move(render_pass));
+ }
+
+ RunTest("DelegatedFrame_ManyRenderPasses_10000_100", std::move(frame));
ajuma 2016/07/28 14:19:13 s/10000/5
Fady Samuel 2016/07/28 19:22:28 Done.
+}
+
+TEST_F(CCSerializationPerfTest, DelegatedFrame_ManyRenderPasses_10_500) {
+ CompositorFrame frame;
+ frame.delegated_frame_data.reset(new DelegatedFrameData);
+
+ for (int i = 0; i < 10; ++i) {
+ std::unique_ptr<RenderPass> render_pass = RenderPass::Create();
+ render_pass->SetNew(RenderPassId(1, 1), gfx::Rect(), gfx::Rect(),
+ gfx::Transform());
+ for (int j = 0; j < 500; ++j) {
+ render_pass->CreateAndAppendSharedQuadState();
+ const gfx::Rect bounds(100, 100, 100, 100);
+ const bool kForceAntiAliasingOff = true;
+ SolidColorDrawQuad* quad =
+ render_pass->CreateAndAppendDrawQuad<SolidColorDrawQuad>();
+ quad->SetNew(render_pass->shared_quad_state_list.back(), bounds, bounds,
+ SK_ColorRED, kForceAntiAliasingOff);
+ }
+ frame.delegated_frame_data->render_pass_list.push_back(
+ std::move(render_pass));
+ }
+
+ RunTest("DelegatedFrame_ManyRenderPasses_10000_100", std::move(frame));
ajuma 2016/07/28 14:19:13 s/10000_100/10_500
Fady Samuel 2016/07/28 19:22:28 Done.
+}
+
TEST_F(CCSerializationPerfTest, DelegatedFrame_ManyRenderPasses_10000_100) {
ajuma 2016/07/28 14:19:13 Since this and the two new tests all have the same
Fady Samuel 2016/07/28 19:22:28 Done.
CompositorFrame frame;
frame.delegated_frame_data.reset(new DelegatedFrameData);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698