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: ui/gfx/transform.h

Issue 23498059: Remove last dependencies on ui/base from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last rebase Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/text_utils.h ('k') | ui/gfx/transform_util.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_GFX_TRANSFORM_H_ 5 #ifndef UI_GFX_TRANSFORM_H_
6 #define UI_GFX_TRANSFORM_H_ 6 #define UI_GFX_TRANSFORM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "third_party/skia/include/utils/SkMatrix44.h" 11 #include "third_party/skia/include/utils/SkMatrix44.h"
12 #include "ui/gfx/gfx_export.h" 12 #include "ui/gfx/gfx_export.h"
13 #include "ui/gfx/vector2d_f.h" 13 #include "ui/gfx/vector2d_f.h"
14 14
15 namespace gfx { 15 namespace gfx {
16 16
17 class RectF; 17 class RectF;
18 class Point; 18 class Point;
19 class Point3F; 19 class Point3F;
20 class Vector3dF; 20 class Vector3dF;
21 21
22 // 4x4 transformation matrix. Transform is cheap and explicitly allows 22 // 4x4 transformation matrix. Transform is cheap and explicitly allows
23 // copy/assign. 23 // copy/assign.
24 class UI_EXPORT Transform { 24 class GFX_EXPORT Transform {
25 public: 25 public:
26 26
27 enum SkipInitialization { 27 enum SkipInitialization {
28 kSkipInitialization 28 kSkipInitialization
29 }; 29 };
30 30
31 Transform() : matrix_(SkMatrix44::kIdentity_Constructor) {} 31 Transform() : matrix_(SkMatrix44::kIdentity_Constructor) {}
32 32
33 // Skips initializing this matrix to avoid overhead, when we know it will be 33 // Skips initializing this matrix to avoid overhead, when we know it will be
34 // initialized before use. 34 // initialized before use.
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 Point3F* point) const; 243 Point3F* point) const;
244 244
245 SkMatrix44 matrix_; 245 SkMatrix44 matrix_;
246 246
247 // copy/assign are allowed. 247 // copy/assign are allowed.
248 }; 248 };
249 249
250 } // namespace gfx 250 } // namespace gfx
251 251
252 #endif // UI_GFX_TRANSFORM_H_ 252 #endif // UI_GFX_TRANSFORM_H_
OLDNEW
« no previous file with comments | « ui/gfx/text_utils.h ('k') | ui/gfx/transform_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698