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

Unified Diff: chrome/browser/android/vr_shell/ui_elements.cc

Issue 2777633003: Avoid duplicate math when computing VR scene hierarchy. (Closed)
Patch Set: s/GetTransform()/mutable_transform()/ Created 3 years, 9 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 | « chrome/browser/android/vr_shell/ui_elements.h ('k') | chrome/browser/android/vr_shell/ui_scene.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/ui_elements.cc
diff --git a/chrome/browser/android/vr_shell/ui_elements.cc b/chrome/browser/android/vr_shell/ui_elements.cc
index 71e7b757f70dba0054c1893f7d29a71daea2c17a..c779d37ded8248002585e81569dc21c2bb76d446 100644
--- a/chrome/browser/android/vr_shell/ui_elements.cc
+++ b/chrome/browser/android/vr_shell/ui_elements.cc
@@ -64,10 +64,6 @@ const gvr::Mat4f& WorldRectangle::TransformMatrix() const {
return transform_.to_world;
}
-void WorldRectangle::SetTransform(const Transform& transform) {
- transform_ = transform;
-}
-
gvr::Vec3f WorldRectangle::GetCenter() const {
const gvr::Vec3f kOrigin = {0.0f, 0.0f, 0.0f};
return MatrixVectorMul(transform_.to_world, kOrigin);
« no previous file with comments | « chrome/browser/android/vr_shell/ui_elements.h ('k') | chrome/browser/android/vr_shell/ui_scene.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698