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

Unified Diff: cc/animation/transform_operation.h

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « cc/animation/timing_function.cc ('k') | cc/animation/transform_operation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/transform_operation.h
diff --git a/cc/animation/transform_operation.h b/cc/animation/transform_operation.h
deleted file mode 100644
index 3ea5fc20210a230a1014915a16fdaaf2bf07a8d9..0000000000000000000000000000000000000000
--- a/cc/animation/transform_operation.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_ANIMATION_TRANSFORM_OPERATION_H_
-#define CC_ANIMATION_TRANSFORM_OPERATION_H_
-
-#include "ui/gfx/transform.h"
-
-namespace gfx {
-class BoxF;
-}
-
-namespace cc {
-
-struct TransformOperation {
- enum Type {
- TRANSFORM_OPERATION_TRANSLATE,
- TRANSFORM_OPERATION_ROTATE,
- TRANSFORM_OPERATION_SCALE,
- TRANSFORM_OPERATION_SKEW,
- TRANSFORM_OPERATION_PERSPECTIVE,
- TRANSFORM_OPERATION_MATRIX,
- TRANSFORM_OPERATION_IDENTITY
- };
-
- TransformOperation() : type(TRANSFORM_OPERATION_IDENTITY) {}
-
- Type type;
- gfx::Transform matrix;
-
- union {
- SkMScalar perspective_depth;
-
- struct {
- SkMScalar x, y;
- } skew;
-
- struct {
- SkMScalar x, y, z;
- } scale;
-
- struct {
- SkMScalar x, y, z;
- } translate;
-
- struct {
- struct {
- SkMScalar x, y, z;
- } axis;
-
- SkMScalar angle;
- } rotate;
- };
-
- bool IsIdentity() const;
- static bool BlendTransformOperations(const TransformOperation* from,
- const TransformOperation* to,
- SkMScalar progress,
- gfx::Transform* result);
-
- static bool BlendedBoundsForBox(const gfx::BoxF& box,
- const TransformOperation* from,
- const TransformOperation* to,
- SkMScalar min_progress,
- SkMScalar max_progress,
- gfx::BoxF* bounds);
-};
-
-} // namespace cc
-
-#endif // CC_ANIMATION_TRANSFORM_OPERATION_H_
« no previous file with comments | « cc/animation/timing_function.cc ('k') | cc/animation/transform_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698