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

Side by Side Diff: cc/animation/transform_operation.h

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CC_ANIMATION_TRANSFORM_OPERATION_H_ 5 #ifndef CC_ANIMATION_TRANSFORM_OPERATION_H_
6 #define CC_ANIMATION_TRANSFORM_OPERATION_H_ 6 #define CC_ANIMATION_TRANSFORM_OPERATION_H_
7 7
8 #include "ui/gfx/transform.h" 8 #include "ui/gfx/transform.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 class BoxF; 11 class BoxF;
12 } 12 }
13 13
14 namespace cc { 14 namespace cc {
15 15
16 struct TransformOperation { 16 struct TransformOperation {
17 enum Type { 17 enum Type {
18 TRANSFORM_OPERATION_TRANSLATE, 18 TransformOperationTranslate,
19 TRANSFORM_OPERATION_ROTATE, 19 TransformOperationRotate,
20 TRANSFORM_OPERATION_SCALE, 20 TransformOperationScale,
21 TRANSFORM_OPERATION_SKEW, 21 TransformOperationSkew,
22 TRANSFORM_OPERATION_PERSPECTIVE, 22 TransformOperationPerspective,
23 TRANSFORM_OPERATION_MATRIX, 23 TransformOperationMatrix,
24 TRANSFORM_OPERATION_IDENTITY 24 TransformOperationIdentity
25 }; 25 };
26 26
27 TransformOperation() : type(TRANSFORM_OPERATION_IDENTITY) {} 27 TransformOperation()
28 : type(TransformOperationIdentity) {
29 }
28 30
29 Type type; 31 Type type;
30 gfx::Transform matrix; 32 gfx::Transform matrix;
31 33
32 union { 34 union {
33 SkMScalar perspective_depth; 35 SkMScalar perspective_depth;
34 36
35 struct { 37 struct {
36 SkMScalar x, y; 38 SkMScalar x, y;
37 } skew; 39 } skew;
(...skipping 25 matching lines...) Expand all
63 const TransformOperation* from, 65 const TransformOperation* from,
64 const TransformOperation* to, 66 const TransformOperation* to,
65 SkMScalar min_progress, 67 SkMScalar min_progress,
66 SkMScalar max_progress, 68 SkMScalar max_progress,
67 gfx::BoxF* bounds); 69 gfx::BoxF* bounds);
68 }; 70 };
69 71
70 } // namespace cc 72 } // namespace cc
71 73
72 #endif // CC_ANIMATION_TRANSFORM_OPERATION_H_ 74 #endif // CC_ANIMATION_TRANSFORM_OPERATION_H_
OLDNEW
« no previous file with comments | « cc/animation/scroll_offset_animation_curve_unittest.cc ('k') | cc/animation/transform_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698