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

Side by Side Diff: remoting/client/ui/view_matrix.cc

Issue 2879383002: [CRD iOS] Move UI stuff into a subdirectory (Closed)
Patch Set: Fix include 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 unified diff | Download patch
« no previous file with comments | « remoting/client/ui/view_matrix.h ('k') | remoting/client/view_matrix.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/client/view_matrix.h" 5 #include "remoting/client/ui/view_matrix.h"
6 6
7 namespace remoting { 7 namespace remoting {
8 8
9 ViewMatrix::ViewMatrix() : ViewMatrix(0.f, {0.f, 0.f}) {} 9 ViewMatrix::ViewMatrix() : ViewMatrix(0.f, {0.f, 0.f}) {}
10 10
11 ViewMatrix::ViewMatrix(float scale, const Vector2D& offset) 11 ViewMatrix::ViewMatrix(float scale, const Vector2D& offset)
12 : scale_(scale), offset_(offset) {} 12 : scale_(scale), offset_(offset) {}
13 13
14 ViewMatrix::~ViewMatrix() {} 14 ViewMatrix::~ViewMatrix() {}
15 15
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 return {{scale_, 0, offset_.x, // Row 1 58 return {{scale_, 0, offset_.x, // Row 1
59 0, scale_, offset_.y, // Row 2 59 0, scale_, offset_.y, // Row 2
60 0, 0, 1}}; 60 0, 0, 1}};
61 } 61 }
62 62
63 bool ViewMatrix::IsEmpty() const { 63 bool ViewMatrix::IsEmpty() const {
64 return scale_ == 0.f && offset_.x == 0.f && offset_.y == 0.f; 64 return scale_ == 0.f && offset_.x == 0.f && offset_.y == 0.f;
65 } 65 }
66 66
67 } // namespace remoting 67 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/ui/view_matrix.h ('k') | remoting/client/view_matrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698