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

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

Issue 2266223002: cc: Compute draw transforms dynamically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase! Created 4 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_common_perftest.cc ('k') | cc/trees/layer_tree_host_impl_unittest.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_common.h" 5 #include "cc/trees/layer_tree_host_common.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #include "ui/gfx/geometry/quad_f.h" 55 #include "ui/gfx/geometry/quad_f.h"
56 #include "ui/gfx/geometry/vector2d_conversions.h" 56 #include "ui/gfx/geometry/vector2d_conversions.h"
57 #include "ui/gfx/transform.h" 57 #include "ui/gfx/transform.h"
58 58
59 namespace cc { 59 namespace cc {
60 namespace { 60 namespace {
61 61
62 class VerifyTreeCalcsLayerTreeSettings : public LayerTreeSettings { 62 class VerifyTreeCalcsLayerTreeSettings : public LayerTreeSettings {
63 public: 63 public:
64 VerifyTreeCalcsLayerTreeSettings() { 64 VerifyTreeCalcsLayerTreeSettings() {
65 verify_transform_tree_calculations = true;
66 verify_clip_tree_calculations = true; 65 verify_clip_tree_calculations = true;
67 } 66 }
68 }; 67 };
69 68
70 class LayerTreeHostCommonTestBase : public LayerTestCommon::LayerImplTest { 69 class LayerTreeHostCommonTestBase : public LayerTestCommon::LayerImplTest {
71 public: 70 public:
72 LayerTreeHostCommonTestBase() 71 LayerTreeHostCommonTestBase()
73 : LayerTestCommon::LayerImplTest(VerifyTreeCalcsLayerTreeSettings()) {} 72 : LayerTestCommon::LayerImplTest(VerifyTreeCalcsLayerTreeSettings()) {}
74 explicit LayerTreeHostCommonTestBase(const LayerTreeSettings& settings) 73 explicit LayerTreeHostCommonTestBase(const LayerTreeSettings& settings)
75 : LayerTestCommon::LayerImplTest(settings) {} 74 : LayerTestCommon::LayerImplTest(settings) {}
(...skipping 10218 matching lines...) Expand 10 before | Expand all | Expand 10 after
10294 EXPECT_EQ(scroll_child6.id, grand_child10->scroll_tree_index()); 10293 EXPECT_EQ(scroll_child6.id, grand_child10->scroll_tree_index());
10295 EXPECT_EQ(scroll_root1.id, parent3->scroll_tree_index()); 10294 EXPECT_EQ(scroll_root1.id, parent3->scroll_tree_index());
10296 EXPECT_EQ(scroll_child7.id, child8->scroll_tree_index()); 10295 EXPECT_EQ(scroll_child7.id, child8->scroll_tree_index());
10297 EXPECT_EQ(scroll_root1.id, parent4->scroll_tree_index()); 10296 EXPECT_EQ(scroll_root1.id, parent4->scroll_tree_index());
10298 EXPECT_EQ(scroll_root1.id, child9->scroll_tree_index()); 10297 EXPECT_EQ(scroll_root1.id, child9->scroll_tree_index());
10299 EXPECT_EQ(scroll_root1.id, grand_child12->scroll_tree_index()); 10298 EXPECT_EQ(scroll_root1.id, grand_child12->scroll_tree_index());
10300 } 10299 }
10301 10300
10302 } // namespace 10301 } // namespace
10303 } // namespace cc 10302 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common_perftest.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698