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

Side by Side Diff: cc/layers/layer_impl_unittest.cc

Issue 1800923002: cc: Directly use property trees to calculate clip rect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix perftests compile by not verify clip tree calc there Created 4 years, 7 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/cc_tests.gyp ('k') | cc/layers/picture_layer_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/layers/layer_impl.h" 5 #include "cc/layers/layer_impl.h"
6 6
7 #include "cc/animation/mutable_properties.h" 7 #include "cc/animation/mutable_properties.h"
8 #include "cc/layers/painted_scrollbar_layer_impl.h" 8 #include "cc/layers/painted_scrollbar_layer_impl.h"
9 #include "cc/layers/solid_color_scrollbar_layer_impl.h" 9 #include "cc/layers/solid_color_scrollbar_layer_impl.h"
10 #include "cc/output/filter_operation.h" 10 #include "cc/output/filter_operation.h"
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 ScrollTree* scroll_tree(LayerImpl* layer_impl) { 434 ScrollTree* scroll_tree(LayerImpl* layer_impl) {
435 return &layer_impl->layer_tree_impl()->property_trees()->scroll_tree; 435 return &layer_impl->layer_tree_impl()->property_trees()->scroll_tree;
436 } 436 }
437 437
438 LayerTreeHostImpl& host_impl() { return host_impl_; } 438 LayerTreeHostImpl& host_impl() { return host_impl_; }
439 439
440 LayerTreeImpl* tree() { return host_impl_.active_tree(); } 440 LayerTreeImpl* tree() { return host_impl_.active_tree(); }
441 441
442 LayerTreeSettings settings() { 442 LayerTreeSettings settings() {
443 LayerTreeSettings settings; 443 LayerTreeSettings settings;
444 settings.verify_clip_tree_calculations = true;
444 return settings; 445 return settings;
445 } 446 }
446 447
447 private: 448 private:
448 FakeImplTaskRunnerProvider task_runner_provider_; 449 FakeImplTaskRunnerProvider task_runner_provider_;
449 TestSharedBitmapManager shared_bitmap_manager_; 450 TestSharedBitmapManager shared_bitmap_manager_;
450 TestTaskGraphRunner task_graph_runner_; 451 TestTaskGraphRunner task_graph_runner_;
451 FakeLayerTreeHostImpl host_impl_; 452 FakeLayerTreeHostImpl host_impl_;
452 int root_id_; 453 int root_id_;
453 }; 454 };
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 579
579 pending_layer->PushPropertiesTo(layer()); 580 pending_layer->PushPropertiesTo(layer());
580 581
581 EXPECT_VECTOR_EQ(gfx::Vector2dF(22, 23), layer()->CurrentScrollOffset()); 582 EXPECT_VECTOR_EQ(gfx::Vector2dF(22, 23), layer()->CurrentScrollOffset());
582 EXPECT_VECTOR_EQ(layer()->CurrentScrollOffset(), 583 EXPECT_VECTOR_EQ(layer()->CurrentScrollOffset(),
583 pending_layer->CurrentScrollOffset()); 584 pending_layer->CurrentScrollOffset());
584 } 585 }
585 586
586 } // namespace 587 } // namespace
587 } // namespace cc 588 } // namespace cc
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698