Lines Matching refs:TRANSFORM
197 void Layer::SetTransform(const gfx::Transform& transform) {
198 GetAnimator()->SetTransform(transform);
201 gfx::Transform Layer::GetTargetTransform() const {
203 LayerAnimationElement::TRANSFORM)) {
206 return transform();
396 gfx::Transform* transform) const {
399 gfx::Transform translation;
402 // Use target transform so that result will be correct once animation is
405 transform->ConcatTransform(p->GetTargetTransform());
406 transform->ConcatTransform(translation);
412 gfx::Transform Layer::ConvertTransformToCCTransform(
413 const gfx::Transform& transform,
415 gfx::Transform cc_transform;
417 cc_transform.PreconcatTransform(transform);
434 animator_->StopAnimatingProperty(LayerAnimationElement::TRANSFORM);
450 new_layer->SetTransform(cc_layer_->transform());
606 animator_->StopAnimatingProperty(LayerAnimationElement::TRANSFORM);
607 gfx::Transform transform = this->transform();
609 RecomputeCCTransformFromTransform(transform);
704 gfx::Transform transform;
705 bool result = GetTargetTransformRelativeTo(ancestor, &transform);
707 transform.TransformPoint(&p);
714 gfx::Transform transform;
715 bool result = GetTargetTransformRelativeTo(ancestor, &transform);
717 transform.TransformPointReverse(&p);
749 void Layer::SetTransformImmediately(const gfx::Transform& transform) {
750 RecomputeCCTransformFromTransform(transform);
786 void Layer::SetTransformFromAnimation(const gfx::Transform& transform) {
787 SetTransformImmediately(transform);
818 gfx::Transform Layer::GetTransformForAnimation() const {
819 return transform();
920 void Layer::RecomputeCCTransformFromTransform(const gfx::Transform& transform) {
921 cc_layer_->SetTransform(ConvertTransformToCCTransform(transform,
925 gfx::Transform Layer::transform() const {
926 gfx::Transform transform;
927 transform.Scale(1.0f / device_scale_factor_, 1.0f / device_scale_factor_);
928 transform.PreconcatTransform(cc_layer_->transform());
929 transform.Scale(device_scale_factor_, device_scale_factor_);
930 return transform;