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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 gfx::PointF(1.23f, 4.56f))); | 543 gfx::PointF(1.23f, 4.56f))); |
544 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetAnchorPointZ(0.7f)); | 544 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetAnchorPointZ(0.7f)); |
545 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetBackgroundColor(SK_ColorLTGRAY)); | 545 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetBackgroundColor(SK_ColorLTGRAY)); |
546 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetMasksToBounds(true)); | 546 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetMasksToBounds(true)); |
547 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetOpacity(0.5f)); | 547 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetOpacity(0.5f)); |
548 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetContentsOpaque(true)); | 548 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetContentsOpaque(true)); |
549 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetPosition(gfx::PointF(4.f, 9.f))); | 549 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetPosition(gfx::PointF(4.f, 9.f))); |
550 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetSublayerTransform( | 550 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetSublayerTransform( |
551 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0))); | 551 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0))); |
552 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollable(true)); | 552 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollable(true)); |
| 553 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetUserScrollable(true, false)); |
553 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollOffset( | 554 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollOffset( |
554 gfx::Vector2d(10, 10))); | 555 gfx::Vector2d(10, 10))); |
555 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetShouldScrollOnMainThread(true)); | 556 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetShouldScrollOnMainThread(true)); |
556 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion( | 557 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion( |
557 Region(gfx::Rect(1, 1, 2, 2)))); | 558 Region(gfx::Rect(1, 1, 2, 2)))); |
558 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true)); | 559 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true)); |
559 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform( | 560 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform( |
560 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0))); | 561 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0))); |
561 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false)); | 562 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false)); |
562 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTouchEventHandlerRegion( | 563 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTouchEventHandlerRegion( |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1065 << "Flags: " << contents_opaque << ", " << layer_opaque << ", " | 1066 << "Flags: " << contents_opaque << ", " << layer_opaque << ", " |
1066 << host_opaque << "\n"; | 1067 << host_opaque << "\n"; |
1067 } | 1068 } |
1068 } | 1069 } |
1069 } | 1070 } |
1070 } | 1071 } |
1071 } | 1072 } |
1072 | 1073 |
1073 } // namespace | 1074 } // namespace |
1074 } // namespace cc | 1075 } // namespace cc |
OLD | NEW |