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

Side by Side Diff: cc/layers/layer_impl_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 | « no previous file | 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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 return &layer_impl->layer_tree_impl()->property_trees()->scroll_tree; 448 return &layer_impl->layer_tree_impl()->property_trees()->scroll_tree;
449 } 449 }
450 450
451 LayerTreeHostImpl& host_impl() { return host_impl_; } 451 LayerTreeHostImpl& host_impl() { return host_impl_; }
452 452
453 LayerTreeImpl* tree() { return host_impl_.active_tree(); } 453 LayerTreeImpl* tree() { return host_impl_.active_tree(); }
454 454
455 LayerTreeSettings settings() { 455 LayerTreeSettings settings() {
456 LayerTreeSettings settings; 456 LayerTreeSettings settings;
457 settings.verify_clip_tree_calculations = true; 457 settings.verify_clip_tree_calculations = true;
458 settings.verify_transform_tree_calculations = true;
459 return settings; 458 return settings;
460 } 459 }
461 460
462 private: 461 private:
463 FakeImplTaskRunnerProvider task_runner_provider_; 462 FakeImplTaskRunnerProvider task_runner_provider_;
464 TestSharedBitmapManager shared_bitmap_manager_; 463 TestSharedBitmapManager shared_bitmap_manager_;
465 TestTaskGraphRunner task_graph_runner_; 464 TestTaskGraphRunner task_graph_runner_;
466 FakeLayerTreeHostImpl host_impl_; 465 FakeLayerTreeHostImpl host_impl_;
467 int root_id_; 466 int root_id_;
468 }; 467 };
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 592
594 pending_layer->PushPropertiesTo(layer()); 593 pending_layer->PushPropertiesTo(layer());
595 594
596 EXPECT_VECTOR_EQ(gfx::Vector2dF(22, 23), layer()->CurrentScrollOffset()); 595 EXPECT_VECTOR_EQ(gfx::Vector2dF(22, 23), layer()->CurrentScrollOffset());
597 EXPECT_VECTOR_EQ(layer()->CurrentScrollOffset(), 596 EXPECT_VECTOR_EQ(layer()->CurrentScrollOffset(),
598 pending_layer->CurrentScrollOffset()); 597 pending_layer->CurrentScrollOffset());
599 } 598 }
600 599
601 } // namespace 600 } // namespace
602 } // namespace cc 601 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698