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

Side by Side Diff: cc/ipc/cc_serialization_perftest.cc

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Rebased to resolve conflict. Created 3 years, 4 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 unified diff | Download patch
« no previous file with comments | « cc/ipc/cc_param_traits_unittest.cc ('k') | cc/ipc/render_pass.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <utility> 5 #include <utility>
6 6
7 #include "base/test/launcher/unit_test_launcher.h" 7 #include "base/test/launcher/unit_test_launcher.h"
8 #include "base/test/test_suite.h" 8 #include "base/test/test_suite.h"
9 #include "cc/ipc/begin_frame_args_struct_traits.h" 9 #include "cc/ipc/begin_frame_args_struct_traits.h"
10 #include "cc/ipc/cc_param_traits.h" 10 #include "cc/ipc/cc_param_traits.h"
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 arbitrary_filters1.Append(FilterOperation::CreateReferenceFilter( 298 arbitrary_filters1.Append(FilterOperation::CreateReferenceFilter(
299 SkBlurImageFilter::Make(arbitrary_sigma, arbitrary_sigma, nullptr))); 299 SkBlurImageFilter::Make(arbitrary_sigma, arbitrary_sigma, nullptr)));
300 300
301 FilterOperations arbitrary_filters2; 301 FilterOperations arbitrary_filters2;
302 arbitrary_filters2.Append( 302 arbitrary_filters2.Append(
303 FilterOperation::CreateBrightnessFilter(arbitrary_float2)); 303 FilterOperation::CreateBrightnessFilter(arbitrary_float2));
304 304
305 std::unique_ptr<RenderPass> pass_in = RenderPass::Create(); 305 std::unique_ptr<RenderPass> pass_in = RenderPass::Create();
306 pass_in->SetAll(root_id, arbitrary_rect1, arbitrary_rect2, 306 pass_in->SetAll(root_id, arbitrary_rect1, arbitrary_rect2,
307 arbitrary_matrix1, arbitrary_filters2, arbitrary_filters1, 307 arbitrary_matrix1, arbitrary_filters2, arbitrary_filters1,
308 arbitrary_color_space, arbitrary_bool1); 308 arbitrary_color_space, arbitrary_bool1, arbitrary_bool1,
309 arbitrary_bool1);
309 310
310 // Texture quads 311 // Texture quads
311 for (uint32_t i = 0; i < 10; ++i) { 312 for (uint32_t i = 0; i < 10; ++i) {
312 SharedQuadState* shared_state1_in = 313 SharedQuadState* shared_state1_in =
313 pass_in->CreateAndAppendSharedQuadState(); 314 pass_in->CreateAndAppendSharedQuadState();
314 shared_state1_in->SetAll(arbitrary_matrix1, arbitrary_rect1, 315 shared_state1_in->SetAll(arbitrary_matrix1, arbitrary_rect1,
315 arbitrary_rect1, arbitrary_rect2, 316 arbitrary_rect1, arbitrary_rect2,
316 arbitrary_bool1, arbitrary_float1, 317 arbitrary_bool1, arbitrary_float1,
317 arbitrary_blend_mode1, arbitrary_context_id1); 318 arbitrary_blend_mode1, arbitrary_context_id1);
318 319
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 // Case 1: One shared quad state for all quads in one render pass. 462 // Case 1: One shared quad state for all quads in one render pass.
462 RunCompositorFrameTest("DelegatedFrame_ManyRenderPasses_10_500", 500, 10, 463 RunCompositorFrameTest("DelegatedFrame_ManyRenderPasses_10_500", 500, 10,
463 UseSingleSharedQuadState::YES); 464 UseSingleSharedQuadState::YES);
464 // Case 2: One shared quad state for each quad. 465 // Case 2: One shared quad state for each quad.
465 RunCompositorFrameTest("DelegatedFrame_ManyRenderPasses_10_500", 500, 10, 466 RunCompositorFrameTest("DelegatedFrame_ManyRenderPasses_10_500", 500, 10,
466 UseSingleSharedQuadState::NO); 467 UseSingleSharedQuadState::NO);
467 } 468 }
468 469
469 } // namespace 470 } // namespace
470 } // namespace cc 471 } // namespace cc
OLDNEW
« no previous file with comments | « cc/ipc/cc_param_traits_unittest.cc ('k') | cc/ipc/render_pass.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698