Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(647)

Side by Side Diff: cc/trees/layer_tree_host_unittest.cc

Issue 145313006: [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 gfx::Size bounds, 1597 const 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
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
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_occlusion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698