OLD | NEW |
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.h" | 5 #include "cc/layers/layer.h" |
6 | 6 |
7 #include "cc/animation/keyframed_animation_curve.h" | 7 #include "cc/animation/keyframed_animation_curve.h" |
8 #include "cc/base/math_util.h" | 8 #include "cc/base/math_util.h" |
9 #include "cc/base/thread.h" | 9 #include "cc/base/thread.h" |
10 #include "cc/layers/layer_impl.h" | 10 #include "cc/layers/layer_impl.h" |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion( | 522 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion( |
523 Region(gfx::Rect(1, 1, 2, 2)))); | 523 Region(gfx::Rect(1, 1, 2, 2)))); |
524 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true)); | 524 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true)); |
525 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform( | 525 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform( |
526 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0))); | 526 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0))); |
527 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false)); | 527 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false)); |
528 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDebugName("Test Layer")); | 528 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDebugName("Test Layer")); |
529 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDrawCheckerboardForMissingTiles( | 529 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDrawCheckerboardForMissingTiles( |
530 !test_layer->DrawCheckerboardForMissingTiles())); | 530 !test_layer->DrawCheckerboardForMissingTiles())); |
531 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetForceRenderSurface(true)); | 531 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetForceRenderSurface(true)); |
| 532 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHideLayerAndSubtree(true)); |
532 | 533 |
533 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetMaskLayer( | 534 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetMaskLayer( |
534 dummy_layer1.get())); | 535 dummy_layer1.get())); |
535 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetReplicaLayer( | 536 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetReplicaLayer( |
536 dummy_layer2.get())); | 537 dummy_layer2.get())); |
537 | 538 |
538 // The above tests should not have caused a change to the needs_display flag. | 539 // The above tests should not have caused a change to the needs_display flag. |
539 EXPECT_FALSE(test_layer->NeedsDisplayForTesting()); | 540 EXPECT_FALSE(test_layer->NeedsDisplayForTesting()); |
540 | 541 |
541 // As layers are removed from the tree, they will cause a tree sync. | 542 // As layers are removed from the tree, they will cause a tree sync. |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 << "Flags: " << contents_opaque << ", " << layer_opaque << ", " | 1001 << "Flags: " << contents_opaque << ", " << layer_opaque << ", " |
1001 << host_opaque << "\n"; | 1002 << host_opaque << "\n"; |
1002 } | 1003 } |
1003 } | 1004 } |
1004 } | 1005 } |
1005 } | 1006 } |
1006 } | 1007 } |
1007 | 1008 |
1008 } // namespace | 1009 } // namespace |
1009 } // namespace cc | 1010 } // namespace cc |
OLD | NEW |