| 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 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1587 }; | 1587 }; |
| 1588 | 1588 |
| 1589 MULTI_THREAD_DELEGATING_RENDERER_NOIMPL_TEST_F( | 1589 MULTI_THREAD_DELEGATING_RENDERER_NOIMPL_TEST_F( |
| 1590 LayerTreeHostTestDelegatingRendererAtomicCommit); | 1590 LayerTreeHostTestDelegatingRendererAtomicCommit); |
| 1591 | 1591 |
| 1592 static void SetLayerPropertiesForTesting(Layer* layer, | 1592 static void SetLayerPropertiesForTesting(Layer* layer, |
| 1593 Layer* parent, | 1593 Layer* parent, |
| 1594 const gfx::Transform& transform, | 1594 const gfx::Transform& transform, |
| 1595 const gfx::PointF& anchor, | 1595 const gfx::PointF& anchor, |
| 1596 const gfx::PointF& position, | 1596 const gfx::PointF& position, |
| 1597 const gfx::Size& bounds, | 1597 gfx::Size bounds, |
| 1598 bool opaque) { | 1598 bool opaque) { |
| 1599 layer->RemoveAllChildren(); | 1599 layer->RemoveAllChildren(); |
| 1600 if (parent) | 1600 if (parent) |
| 1601 parent->AddChild(layer); | 1601 parent->AddChild(layer); |
| 1602 layer->SetTransform(transform); | 1602 layer->SetTransform(transform); |
| 1603 layer->SetAnchorPoint(anchor); | 1603 layer->SetAnchorPoint(anchor); |
| 1604 layer->SetPosition(position); | 1604 layer->SetPosition(position); |
| 1605 layer->SetBounds(bounds); | 1605 layer->SetBounds(bounds); |
| 1606 layer->SetContentsOpaque(opaque); | 1606 layer->SetContentsOpaque(opaque); |
| 1607 } | 1607 } |
| (...skipping 3341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4949 | 4949 |
| 4950 EndTest(); | 4950 EndTest(); |
| 4951 } | 4951 } |
| 4952 | 4952 |
| 4953 virtual void AfterTest() OVERRIDE {} | 4953 virtual void AfterTest() OVERRIDE {} |
| 4954 }; | 4954 }; |
| 4955 | 4955 |
| 4956 MULTI_THREAD_TEST_F(LayerTreeHostTestSimpleSwapPromiseMonitor); | 4956 MULTI_THREAD_TEST_F(LayerTreeHostTestSimpleSwapPromiseMonitor); |
| 4957 | 4957 |
| 4958 } // namespace cc | 4958 } // namespace cc |
| OLD | NEW |