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

Unified Diff: remoting/client/view_matrix.h

Issue 2866843002: [Remoting Client] Always ResizeToFit when desktop/surface size is changed (Closed)
Patch Set: Created 3 years, 7 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: remoting/client/view_matrix.h
diff --git a/remoting/client/view_matrix.h b/remoting/client/view_matrix.h
index 56b4ec5a162aa593367a74f040f7a6f000101344..e13d70ba3e1ab41879ad05f11fe4dd1476ddfb96 100644
--- a/remoting/client/view_matrix.h
+++ b/remoting/client/view_matrix.h
@@ -44,6 +44,9 @@ class ViewMatrix {
// Returns the scale of this matrix.
float GetScale() const;
+ // Sets the offset.
+ void SetOffset(const Point& offset);
+
// Adjust the matrix M to M' such that:
// M * p_a = p_b => M' * p_a = scale * (p_b - pivot) + pivot
void PostScale(const Point& pivot, float scale);

Powered by Google App Engine
This is Rietveld 408576698