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
3 // found in the LICENSE file.
5 #ifndef CC_ANIMATION_TRANSFORM_OPERATION_H_
6 #define CC_ANIMATION_TRANSFORM_OPERATION_H_
8 #include "ui/gfx/transform.h"
12 struct TransformOperation
{
14 TransformOperationTranslate
,
15 TransformOperationRotate
,
16 TransformOperationScale
,
17 TransformOperationSkew
,
18 TransformOperationPerspective
,
19 TransformOperationMatrix
,
20 TransformOperationIdentity
24 : type(TransformOperationIdentity
) {
28 gfx::Transform matrix
;
31 double perspective_depth
;
54 bool IsIdentity() const;
55 static bool BlendTransformOperations(const TransformOperation
* from
,
56 const TransformOperation
* to
,
58 gfx::Transform
* result
);
63 #endif // CC_ANIMATION_TRANSFORM_OPERATION_H_