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

Issue 11367080: cc: Remove all remaining use of WebCore Rect/Point/Size types from the compositor. (Closed)

Created:
8 years, 1 month ago by danakj
Modified:
8 years, 1 month ago
Reviewers:
enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, darin-cc_chromium.org, backer, piman, aelias_OOO_until_Jul13
Visibility:
Public.

Description

cc: Remove all remaining use of WebCore Rect/Point/Size types from the compositor. This change removes all IntPoint/FloatRect/IntSize/etc from the compositor. There remains an indirect dependency on these types through the WebCore::Region class, which we wrap but need to replace. However, the wrapper there hides the WebCore types inside it, so there are now no references to the types from anywhere else in the compositor. I went back and forth on how to deal with scroll "positions". The name suggested that they should be Points, and that the deltas should be Vectors. However this lent itself to super awkward math at times. In the end, it was much cleaner to make all scroll "positions" into scroll "offsets" and represent everything as Vectors. Covered by existing tests; no change in behaviour. R=enne BUG=147395 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=165947

Patch Set 1 #

Patch Set 2 : Move ui/gfx changes to cc/geometry.h #

Total comments: 2

Patch Set 3 : Typo #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+596 lines, -844 lines) Patch
M cc/DEPS View 1 2 3 1 chunk +1 line, -16 lines 0 comments Download
M cc/geometry.h View 1 2 3 2 chunks +64 lines, -2 lines 0 comments Download
M cc/input_handler.h View 1 2 3 3 chunks +5 lines, -7 lines 0 comments Download
M cc/layer.h View 1 2 3 4 chunks +7 lines, -8 lines 0 comments Download
M cc/layer.cc View 3 chunks +9 lines, -9 lines 0 comments Download
M cc/layer_impl.h View 1 2 3 4 chunks +13 lines, -15 lines 0 comments Download
M cc/layer_impl.cc View 4 chunks +14 lines, -11 lines 0 comments Download
M cc/layer_impl_unittest.cc View 4 chunks +7 lines, -6 lines 0 comments Download
M cc/layer_tree_host.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_host.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M cc/layer_tree_host_client.h View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M cc/layer_tree_host_common.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/layer_tree_host_common.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M cc/layer_tree_host_common_unittest.cc View 20 chunks +21 lines, -21 lines 0 comments Download
M cc/layer_tree_host_impl.h View 1 2 3 7 chunks +11 lines, -12 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 23 chunks +75 lines, -74 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 49 chunks +99 lines, -98 lines 0 comments Download
M cc/layer_tree_host_unittest.cc View 26 chunks +103 lines, -102 lines 0 comments Download
M cc/layer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/math_util.h View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M cc/math_util.cc View 2 chunks +17 lines, -10 lines 0 comments Download
M cc/math_util_unittest.cc View 3 chunks +18 lines, -17 lines 0 comments Download
M cc/page_scale_animation.h View 1 2 3 4 chunks +12 lines, -11 lines 0 comments Download
M cc/page_scale_animation.cc View 1 7 chunks +28 lines, -28 lines 0 comments Download
M cc/proxy.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/scrollbar_animation_controller.h View 1 2 3 3 chunks +7 lines, -10 lines 0 comments Download
M cc/scrollbar_animation_controller.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M cc/scrollbar_animation_controller_linear_fade.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/scrollbar_animation_controller_linear_fade_unittest.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M cc/scrollbar_geometry_fixed_thumb.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/scrollbar_geometry_fixed_thumb.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/scrollbar_layer_unittest.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M cc/single_thread_proxy.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/single_thread_proxy.cc View 1 chunk +2 lines, -2 lines 0 comments Download
D cc/stubs/FloatPoint.h View 1 chunk +0 lines, -6 lines 0 comments Download
D cc/stubs/FloatSize.h View 1 chunk +0 lines, -6 lines 0 comments Download
D cc/stubs/IntPoint.h View 1 chunk +0 lines, -6 lines 0 comments Download
D cc/stubs/IntSize.h View 1 chunk +0 lines, -6 lines 0 comments Download
D cc/stubs/float_point.h View 1 chunk +0 lines, -58 lines 0 comments Download
D cc/stubs/float_size.h View 1 chunk +0 lines, -59 lines 0 comments Download
D cc/stubs/int_point.h View 1 chunk +0 lines, -47 lines 0 comments Download
D cc/stubs/int_size.h View 1 chunk +0 lines, -50 lines 0 comments Download
M cc/test/fake_layer_tree_host_client.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/test/geometry_test_utils.h View 1 2 3 1 chunk +14 lines, -8 lines 0 comments Download
M cc/test/layer_tree_test_common.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/test/layer_tree_test_common.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/thread_proxy.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/thread_proxy.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M webkit/compositor_bindings/compositor_bindings.gyp View 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/compositor_bindings/web_content_layer_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/compositor_bindings/web_layer_impl.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M webkit/compositor_bindings/web_layer_tree_view_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M webkit/compositor_bindings/web_layer_tree_view_impl.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc View 4 chunks +3 lines, -6 lines 0 comments Download
D webkit/compositor_bindings/webcore_convert.h View 1 chunk +0 lines, -26 lines 0 comments Download
D webkit/compositor_bindings/webcore_convert.cc View 1 chunk +0 lines, -38 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
danakj
dun dun dun..
8 years, 1 month ago (2012-11-03 03:39:25 UTC) #1
danakj
+aelias please take a look as well.
8 years, 1 month ago (2012-11-03 03:39:49 UTC) #2
enne (OOO)
dun dun dun, indeed! lgtm https://codereview.chromium.org/11367080/diff/1059/cc/proxy.h File cc/proxy.h (right): https://codereview.chromium.org/11367080/diff/1059/cc/proxy.h#newcode43 cc/proxy.h:43: virtual void startPageScaleAnimation(gfx::Vector2d targetOffet, ...
8 years, 1 month ago (2012-11-03 03:54:18 UTC) #3
danakj
8 years, 1 month ago (2012-11-03 13:45:04 UTC) #4
Thanks, nice catch.

https://codereview.chromium.org/11367080/diff/1059/cc/proxy.h
File cc/proxy.h (right):

https://codereview.chromium.org/11367080/diff/1059/cc/proxy.h#newcode43
cc/proxy.h:43: virtual void startPageScaleAnimation(gfx::Vector2d targetOffet,
bool useAnchor, float scale, base::TimeDelta duration) = 0;
On 2012/11/03 03:54:18, enne wrote:
> Typo.

Done.

Powered by Google App Engine
This is Rietveld 408576698