| 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/trees/layer_tree_host.h" | 5 #include "cc/trees/layer_tree_host.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
| 10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| (...skipping 1591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1602 } | 1602 } |
| 1603 } | 1603 } |
| 1604 }; | 1604 }; |
| 1605 | 1605 |
| 1606 MULTI_THREAD_DELEGATING_RENDERER_NOIMPL_TEST_F( | 1606 MULTI_THREAD_DELEGATING_RENDERER_NOIMPL_TEST_F( |
| 1607 LayerTreeHostTestDelegatingRendererAtomicCommit); | 1607 LayerTreeHostTestDelegatingRendererAtomicCommit); |
| 1608 | 1608 |
| 1609 static void SetLayerPropertiesForTesting(Layer* layer, | 1609 static void SetLayerPropertiesForTesting(Layer* layer, |
| 1610 Layer* parent, | 1610 Layer* parent, |
| 1611 const gfx::Transform& transform, | 1611 const gfx::Transform& transform, |
| 1612 gfx::PointF anchor, | 1612 const gfx::PointF& anchor, |
| 1613 gfx::PointF position, | 1613 const gfx::PointF& position, |
| 1614 gfx::Size bounds, | 1614 gfx::Size bounds, |
| 1615 bool opaque) { | 1615 bool opaque) { |
| 1616 layer->RemoveAllChildren(); | 1616 layer->RemoveAllChildren(); |
| 1617 if (parent) | 1617 if (parent) |
| 1618 parent->AddChild(layer); | 1618 parent->AddChild(layer); |
| 1619 layer->SetTransform(transform); | 1619 layer->SetTransform(transform); |
| 1620 layer->SetAnchorPoint(anchor); | 1620 layer->SetAnchorPoint(anchor); |
| 1621 layer->SetPosition(position); | 1621 layer->SetPosition(position); |
| 1622 layer->SetBounds(bounds); | 1622 layer->SetBounds(bounds); |
| 1623 layer->SetContentsOpaque(opaque); | 1623 layer->SetContentsOpaque(opaque); |
| (...skipping 3143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4767 | 4767 |
| 4768 EndTest(); | 4768 EndTest(); |
| 4769 } | 4769 } |
| 4770 | 4770 |
| 4771 virtual void AfterTest() OVERRIDE {} | 4771 virtual void AfterTest() OVERRIDE {} |
| 4772 }; | 4772 }; |
| 4773 | 4773 |
| 4774 MULTI_THREAD_TEST_F(LayerTreeHostTestSimpleSwapPromiseMonitor); | 4774 MULTI_THREAD_TEST_F(LayerTreeHostTestSimpleSwapPromiseMonitor); |
| 4775 | 4775 |
| 4776 } // namespace cc | 4776 } // namespace cc |
| OLD | NEW |