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

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

Issue 295193002: Get rid of graphics layer anchor points, and replace with transform origin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit. Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_impl_unittest.cc ('k') | ui/compositor/compositor.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/occlusion_tracker.h" 5 #include "cc/trees/occlusion_tracker.h"
6 6
7 #include "cc/animation/layer_animation_controller.h" 7 #include "cc/animation/layer_animation_controller.h"
8 #include "cc/base/math_util.h" 8 #include "cc/base/math_util.h"
9 #include "cc/layers/layer.h" 9 #include "cc/layers/layer.h"
10 #include "cc/layers/layer_impl.h" 10 #include "cc/layers/layer_impl.h"
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 host_->SetRootLayer(scoped_refptr<Layer>(root)); 386 host_->SetRootLayer(scoped_refptr<Layer>(root));
387 } 387 }
388 388
389 void SetRootLayerOnMainThread(LayerImpl* root) {} 389 void SetRootLayerOnMainThread(LayerImpl* root) {}
390 390
391 void SetBaseProperties(typename Types::LayerType* layer, 391 void SetBaseProperties(typename Types::LayerType* layer,
392 const gfx::Transform& transform, 392 const gfx::Transform& transform,
393 const gfx::PointF& position, 393 const gfx::PointF& position,
394 const gfx::Size& bounds) { 394 const gfx::Size& bounds) {
395 layer->SetTransform(transform); 395 layer->SetTransform(transform);
396 layer->SetAnchorPoint(gfx::PointF());
397 layer->SetPosition(position); 396 layer->SetPosition(position);
398 layer->SetBounds(bounds); 397 layer->SetBounds(bounds);
399 } 398 }
400 399
401 void SetProperties(Layer* layer, 400 void SetProperties(Layer* layer,
402 const gfx::Transform& transform, 401 const gfx::Transform& transform,
403 const gfx::PointF& position, 402 const gfx::PointF& position,
404 const gfx::Size& bounds) { 403 const gfx::Size& bounds) {
405 SetBaseProperties(layer, transform, position, bounds); 404 SetBaseProperties(layer, transform, position, bounds);
406 } 405 }
(...skipping 3145 matching lines...) Expand 10 before | Expand all | Expand 10 after
3552 occlusion.occlusion_from_outside_target().ToString()); 3551 occlusion.occlusion_from_outside_target().ToString());
3553 EXPECT_EQ(gfx::Rect().ToString(), 3552 EXPECT_EQ(gfx::Rect().ToString(),
3554 occlusion.occlusion_from_inside_target().ToString()); 3553 occlusion.occlusion_from_inside_target().ToString());
3555 } 3554 }
3556 }; 3555 };
3557 3556
3558 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestHiddenCopyRequestDoesNotOcclude) 3557 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestHiddenCopyRequestDoesNotOcclude)
3559 3558
3560 } // namespace 3559 } // namespace
3561 } // namespace cc 3560 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl_unittest.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698