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

Unified Diff: cc/trees/occlusion_tracker_unittest.cc

Issue 1180073015: cc: Remove LayerImpl::SetContentBounds() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rm-setcontentbounds: . Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/occlusion_tracker_perftest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/occlusion_tracker_unittest.cc
diff --git a/cc/trees/occlusion_tracker_unittest.cc b/cc/trees/occlusion_tracker_unittest.cc
index 6550d42f81f6d1a0fe04e080996c11ecd40d52d6..8183cea9b2879ff711a5c08c2ee3da047a8b9d78 100644
--- a/cc/trees/occlusion_tracker_unittest.cc
+++ b/cc/trees/occlusion_tracker_unittest.cc
@@ -287,22 +287,13 @@ class OcclusionTrackerTest : public testing::Test {
void SetRootLayerOnMainThread(LayerImpl* root) {}
- void SetBaseProperties(LayerImpl* layer,
- const gfx::Transform& transform,
- const gfx::PointF& position,
- const gfx::Size& bounds) {
- layer->SetTransform(transform);
- layer->SetPosition(position);
- layer->SetBounds(bounds);
- }
-
void SetProperties(LayerImpl* layer,
const gfx::Transform& transform,
const gfx::PointF& position,
const gfx::Size& bounds) {
- SetBaseProperties(layer, transform, position, bounds);
-
- layer->SetContentBounds(layer->bounds());
+ layer->SetTransform(transform);
+ layer->SetPosition(position);
+ layer->SetBounds(bounds);
}
void SetReplica(LayerImpl* owning_layer, scoped_ptr<LayerImpl> layer) {
« no previous file with comments | « cc/trees/occlusion_tracker_perftest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698