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

Unified Diff: remoting/client/view_matrix.cc

Issue 2866843002: [Remoting Client] Always ResizeToFit when desktop/surface size is changed (Closed)
Patch Set: Resolve Feedback 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
« no previous file with comments | « remoting/client/view_matrix.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/view_matrix.cc
diff --git a/remoting/client/view_matrix.cc b/remoting/client/view_matrix.cc
index 0172341747a32220da62e89d9ff72283292d0ad7..8530cee41d6c31a16e6dce9695053da9f265c756 100644
--- a/remoting/client/view_matrix.cc
+++ b/remoting/client/view_matrix.cc
@@ -33,6 +33,10 @@ float ViewMatrix::GetScale() const {
return scale_;
}
+void ViewMatrix::SetOffset(const Point& offset) {
+ offset_ = offset;
+}
+
void ViewMatrix::PostScale(const Point& pivot, float scale) {
scale_ *= scale;
offset_.x *= scale;
« no previous file with comments | « remoting/client/view_matrix.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698