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

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

Issue 2777633003: Avoid duplicate math when computing VR scene hierarchy. (Closed)
Patch Set: Rever the inheritable transform getter for now - we can make a struct-to-class change later if we w… 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
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);

Powered by Google App Engine
This is Rietveld 408576698