|
gfx::Transform API clean-up
We have too many ways to do the same thing in gfx::Transform, and their names
can lead to confusion. We have the notion of Concat-ing and Preconcat-ing.
We've borrowed this verbage from skia. a.preConcat(b) means a = a * b. This may
seem counter-intuitive, but is the correct definition if we are multiplying our
points/vectors on the right.
That said, we almost always want to pre-concat. This what is done throughout
WebKit. To simplify matters, rather than having ConcatFoo and PreconcatFoo, we
will now only have Foo which does what PreconcatFoo used to.
Furthermore, we also have SetFoo which is almost always used immediately after
a transform is created, so Foo would do fine (with the optimization mentioned
below).
Another bit of redundant code eliminated by this CL is
InterpolatedTransform::FactorTRS. This function was brittle and naive, and now
that gfx::Transform::Blend exists, it needs to go away.
Other minor changes rolled into this cleanup:
- RotateAbout now takes the newly minted Vector3dF
- The Foo functions mentioned above also check for identity to avoid
needless matrix multiplications.
BUG= 159972
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=169476
Total comments: 11
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+593 lines, -822 lines) |
Patch |
 |
M |
ash/launcher/overflow_button.cc
|
View
|
|
2 chunks |
+13 lines, -9 lines |
0 comments
|
Download
|
 |
M |
ash/magnifier/magnification_controller.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ash/system/tray/system_tray_bubble.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ash/system/tray/tray_item_view.cc
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ash/wm/gestures/long_press_affordance_handler.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ash/wm/session_state_animator.cc
|
View
|
|
2 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ash/wm/window_animations.cc
|
View
|
|
6 chunks |
+23 lines, -27 lines |
0 comments
|
Download
|
 |
M |
ash/wm/window_animations_unittest.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ash/wm/window_manager_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ash/wm/workspace/workspace_animations.cc
|
View
|
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/math_util.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/math_util.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -12 lines |
0 comments
|
Download
|
 |
M |
cc/math_util_unittest.cc
|
View
|
1
2
3
|
19 chunks |
+65 lines, -43 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_view_aura.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/aura/root_window.cc
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/aura/window_unittest.cc
|
View
|
|
6 chunks |
+21 lines, -21 lines |
0 comments
|
Download
|
 |
M |
ui/base/animation/tween.cc
|
View
|
|
2 chunks |
+4 lines, -31 lines |
0 comments
|
Download
|
 |
M |
ui/base/events/event.cc
|
View
|
|
2 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/debug_utils.cc
|
View
|
1
2
3
|
2 chunks |
+20 lines, -26 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/layer.cc
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/layer_animation_element_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/layer_animation_sequence_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/layer_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/interpolated_transform.h
|
View
|
1
|
6 chunks |
+15 lines, -18 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/interpolated_transform.cc
|
View
|
1
|
10 chunks |
+27 lines, -105 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/interpolated_transform_unittest.cc
|
View
|
|
5 chunks |
+3 lines, -29 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/transform.h
|
View
|
1
2
3
|
3 chunks |
+18 lines, -67 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/transform.cc
|
View
|
1
2
3
|
2 chunks |
+107 lines, -193 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/transform_unittest.cc
|
View
|
1
2
|
44 chunks |
+127 lines, -101 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/transform_util.cc
|
View
|
1
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/slide_out_view.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/corewm/image_grid.cc
|
View
|
|
8 chunks |
+21 lines, -18 lines |
0 comments
|
Download
|
 |
M |
ui/views/view.cc
|
View
|
1
2
3
|
4 chunks |
+33 lines, -37 lines |
0 comments
|
Download
|
 |
M |
ui/views/view_unittest.cc
|
View
|
1
2
3
|
13 chunks |
+27 lines, -23 lines |
0 comments
|
Download
|
Total messages: 16 (0 generated)
|