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

Side by Side Diff: cc/trees/layer_tree_host_unittest_occlusion.cc

Issue 662473003: cc: Replace > > with >> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: angles: . Created 6 years, 2 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/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include "cc/layers/layer.h" 7 #include "cc/layers/layer.h"
8 #include "cc/output/copy_output_request.h" 8 #include "cc/output/copy_output_request.h"
9 #include "cc/output/copy_output_result.h" 9 #include "cc/output/copy_output_result.h"
10 #include "cc/test/layer_tree_test.h" 10 #include "cc/test/layer_tree_test.h"
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 }; 577 };
578 578
579 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostOcclusionTestOcclusionReplica); 579 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostOcclusionTestOcclusionReplica);
580 580
581 class LayerTreeHostOcclusionTestManySurfaces 581 class LayerTreeHostOcclusionTestManySurfaces
582 : public LayerTreeHostOcclusionTest { 582 : public LayerTreeHostOcclusionTest {
583 public: 583 public:
584 virtual void SetupTree() override { 584 virtual void SetupTree() override {
585 // We create enough RenderSurfaces that it will trigger Vector reallocation 585 // We create enough RenderSurfaces that it will trigger Vector reallocation
586 // while computing occlusion. 586 // while computing occlusion.
587 std::vector<scoped_refptr<TestLayer> > layers; 587 std::vector<scoped_refptr<TestLayer>> layers;
588 int num_surfaces = 200; 588 int num_surfaces = 200;
589 int root_width = 400; 589 int root_width = 400;
590 int root_height = 400; 590 int root_height = 400;
591 591
592 for (int i = 0; i < num_surfaces; ++i) { 592 for (int i = 0; i < num_surfaces; ++i) {
593 layers.push_back(TestLayer::Create()); 593 layers.push_back(TestLayer::Create());
594 if (i == 0) { 594 if (i == 0) {
595 SetLayerPropertiesForTesting( 595 SetLayerPropertiesForTesting(
596 layers.back().get(), NULL, identity_matrix_, 596 layers.back().get(), NULL, identity_matrix_,
597 gfx::PointF(0.f, 0.f), 597 gfx::PointF(0.f, 0.f),
(...skipping 22 matching lines...) Expand all
620 620
621 layer_tree_host()->SetRootLayer(layers[0]); 621 layer_tree_host()->SetRootLayer(layers[0]);
622 LayerTreeTest::SetupTree(); 622 LayerTreeTest::SetupTree();
623 } 623 }
624 }; 624 };
625 625
626 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostOcclusionTestManySurfaces); 626 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostOcclusionTestManySurfaces);
627 627
628 } // namespace 628 } // namespace
629 } // namespace cc 629 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698