From 6b46bad4ce594486783abc1f94f52ebe53d70285 Mon Sep 17 00:00:00 2001 From: freiling Date: Mon, 8 Apr 2019 16:32:26 -0700 Subject: [PATCH] [scenic][SCN-1054] remove dangling uses of SetTranslationRH (flutter/engine#8503) Looks like someone added a new use of the method while I was waiting for flutter to roll. nuking the last instance so i can move forward with deprecating and removing it. --- engine/src/flutter/flow/scene_update_context.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/engine/src/flutter/flow/scene_update_context.cc b/engine/src/flutter/flow/scene_update_context.cc index 11cda2a4ed..07ff4d876a 100644 --- a/engine/src/flutter/flow/scene_update_context.cc +++ b/engine/src/flutter/flow/scene_update_context.cc @@ -86,9 +86,9 @@ void SceneUpdateContext::CreateFrame( rrect.radii(SkRRect::kLowerLeft_Corner).x() // bottom_left_radius ); shape_node->SetShape(shape); - shape_node->SetTranslationRH( - shape_bounds.width() * 0.5f + shape_bounds.left(), - shape_bounds.height() * 0.5f + shape_bounds.top(), 0.f); + shape_node->SetTranslation(shape_bounds.width() * 0.5f + shape_bounds.left(), + shape_bounds.height() * 0.5f + shape_bounds.top(), + 0.f); // Check whether the painted layers will be visible. if (paint_bounds.isEmpty() || !paint_bounds.intersects(shape_bounds)) @@ -313,9 +313,9 @@ SceneUpdateContext::Clip::Clip(SceneUpdateContext& context, const SkRect& shape_bounds) : Entity(context) { shape_node().SetShape(shape); - shape_node().SetTranslationRH( - shape_bounds.width() * 0.5f + shape_bounds.left(), - shape_bounds.height() * 0.5f + shape_bounds.top(), 0.f); + shape_node().SetTranslation(shape_bounds.width() * 0.5f + shape_bounds.left(), + shape_bounds.height() * 0.5f + shape_bounds.top(), + 0.f); entity_node().SetClip(0u, true /* clip to self */); SetEntityNodeClipPlanes(&entity_node(), shape_bounds);