| 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/layers/layer_impl.h" | 9 #include "cc/layers/layer_impl.h" |
| 10 #include "cc/resources/layer_painter.h" | 10 #include "cc/resources/layer_painter.h" |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 gfx::Vector2d(10, 10))); | 557 gfx::Vector2d(10, 10))); |
| 558 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetShouldScrollOnMainThread(true)); | 558 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetShouldScrollOnMainThread(true)); |
| 559 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion( | 559 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion( |
| 560 Region(gfx::Rect(1, 1, 2, 2)))); | 560 Region(gfx::Rect(1, 1, 2, 2)))); |
| 561 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true)); | 561 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true)); |
| 562 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform( | 562 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform( |
| 563 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0))); | 563 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0))); |
| 564 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false)); | 564 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false)); |
| 565 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTouchEventHandlerRegion( | 565 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTouchEventHandlerRegion( |
| 566 gfx::Rect(10, 10))); | 566 gfx::Rect(10, 10))); |
| 567 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDrawCheckerboardForMissingTiles( | 567 EXPECT_SET_NEEDS_COMMIT( |
| 568 !test_layer->DrawCheckerboardForMissingTiles())); | 568 1, |
| 569 test_layer->SetDrawCheckerboardForMissingTiles( |
| 570 !test_layer->draw_checkerboard_for_missing_tiles())); |
| 569 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetForceRenderSurface(true)); | 571 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetForceRenderSurface(true)); |
| 570 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHideLayerAndSubtree(true)); | 572 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHideLayerAndSubtree(true)); |
| 571 | 573 |
| 572 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetMaskLayer( | 574 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetMaskLayer( |
| 573 dummy_layer1.get())); | 575 dummy_layer1.get())); |
| 574 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetReplicaLayer( | 576 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetReplicaLayer( |
| 575 dummy_layer2.get())); | 577 dummy_layer2.get())); |
| 576 | 578 |
| 577 // The above tests should not have caused a change to the needs_display flag. | 579 // The above tests should not have caused a change to the needs_display flag. |
| 578 EXPECT_FALSE(test_layer->NeedsDisplayForTesting()); | 580 EXPECT_FALSE(test_layer->NeedsDisplayForTesting()); |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 << "Flags: " << contents_opaque << ", " << layer_opaque << ", " | 1076 << "Flags: " << contents_opaque << ", " << layer_opaque << ", " |
| 1075 << host_opaque << "\n"; | 1077 << host_opaque << "\n"; |
| 1076 } | 1078 } |
| 1077 } | 1079 } |
| 1078 } | 1080 } |
| 1079 } | 1081 } |
| 1080 } | 1082 } |
| 1081 | 1083 |
| 1082 } // namespace | 1084 } // namespace |
| 1083 } // namespace cc | 1085 } // namespace cc |
| OLD | NEW |