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

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

Issue 139233002: [#4] Pass gfx structs by const ref (gfx::PointF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected as per review comments! Created 6 years, 11 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
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_unittest_occlusion.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1591 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.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