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

Side by Side Diff: cc/math_util.h

Issue 12096112: [cc] Trace detailed tile info when --trace-all-rendered-frames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/math_util.cc » ('j') | cc/picture_layer_tiling.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CC_MATH_UTIL_H_ 5 #ifndef CC_MATH_UTIL_H_
6 #define CC_MATH_UTIL_H_ 6 #define CC_MATH_UTIL_H_
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h"
9 #include "cc/cc_export.h" 10 #include "cc/cc_export.h"
10 #include "ui/gfx/point_f.h" 11 #include "ui/gfx/point_f.h"
11 #include "ui/gfx/point3_f.h" 12 #include "ui/gfx/point3_f.h"
12 #include "ui/gfx/transform.h" 13 #include "ui/gfx/transform.h"
13 14
15 namespace base {
16 class Value;
17 }
18
14 namespace gfx { 19 namespace gfx {
15 class QuadF; 20 class QuadF;
16 class Rect; 21 class Rect;
17 class RectF; 22 class RectF;
18 class Transform; 23 class Transform;
19 class Vector2dF; 24 class Vector2dF;
20 } 25 }
21 26
22 namespace cc { 27 namespace cc {
23 28
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 static gfx::PointF projectPoint(const gfx::Transform&, const gfx::PointF&, b ool& clipped); 110 static gfx::PointF projectPoint(const gfx::Transform&, const gfx::PointF&, b ool& clipped);
106 111
107 static gfx::Vector2dF computeTransform2dScaleComponents(const gfx::Transform &, float fallbackValue); 112 static gfx::Vector2dF computeTransform2dScaleComponents(const gfx::Transform &, float fallbackValue);
108 113
109 // Returns the smallest angle between the given two vectors in degrees. Neit her vector is 114 // Returns the smallest angle between the given two vectors in degrees. Neit her vector is
110 // assumed to be normalized. 115 // assumed to be normalized.
111 static float smallestAngleBetweenVectors(gfx::Vector2dF, gfx::Vector2dF); 116 static float smallestAngleBetweenVectors(gfx::Vector2dF, gfx::Vector2dF);
112 117
113 // Projects the |source| vector onto |destination|. Neither vector is assume d to be normalized. 118 // Projects the |source| vector onto |destination|. Neither vector is assume d to be normalized.
114 static gfx::Vector2dF projectVector(gfx::Vector2dF source, gfx::Vector2dF de stination); 119 static gfx::Vector2dF projectVector(gfx::Vector2dF source, gfx::Vector2dF de stination);
120
121 // Conversion to value.
122 static scoped_ptr<base::Value> asValue(gfx::PointF q);
123 static scoped_ptr<base::Value> asValue(gfx::QuadF q);
115 }; 124 };
116 125
117 } // namespace cc 126 } // namespace cc
118 127
119 #endif // CC_MATH_UTIL_H_ 128 #endif // CC_MATH_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/math_util.cc » ('j') | cc/picture_layer_tiling.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698