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

Issue 12093015: Move page scale ownership to LayerTreeImpl. (Closed)

Created:
7 years, 10 months ago by aelias_OOO_until_Jul13
Modified:
7 years, 10 months ago
Reviewers:
danakj, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@coordchange3
Visibility:
Public.

Description

Move page scale ownership to LayerTreeImpl. Page scale is conceptually very similar to scroll offset, just multiplicative instead of additive. It has the exact same problems of state synchronization between WebKit and the CC impl thread, and the solution is also the same. In this patch I closely imitated the three-way sentScrollDelta logic. I also deleted PinchZoomViewport and moved everything to LayerTreeImpl because it turned out there was almost no logic that could be isolated there. This resolves many graphical glitches, including the white flashes and blurriness while pinching or double-tap zooming, and the jumping around during navigation. NOTRY=true BUG=171914 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179607

Patch Set 1 #

Total comments: 13

Patch Set 2 : Apply code review comments #

Patch Set 3 : Rebase to 179483 #

Patch Set 4 : Rebase to 179503 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -276 lines) Patch
M cc/cc.gyp View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M cc/layer_tree_host.cc View 1 2 chunks +17 lines, -1 line 0 comments Download
M cc/layer_tree_host_impl.h View 1 4 chunks +0 lines, -11 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 12 chunks +39 lines, -96 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 16 chunks +51 lines, -13 lines 0 comments Download
M cc/layer_tree_host_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layer_tree_impl.h View 1 5 chunks +25 lines, -2 lines 0 comments Download
M cc/layer_tree_impl.cc View 1 9 chunks +80 lines, -8 lines 0 comments Download
D cc/pinch_zoom_viewport.h View 1 chunk +0 lines, -75 lines 0 comments Download
D cc/pinch_zoom_viewport.cc View 1 chunk +0 lines, -64 lines 0 comments Download
M cc/thread_proxy.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
aelias_OOO_until_Jul13
This patch depends on https://codereview.chromium.org/12045002 landing first (which is itself blocked on a WebKit change). ...
7 years, 10 months ago (2013-01-28 09:58:57 UTC) #1
danakj
I like this CL so much, thanks for taking this on. One question.. https://codereview.chromium.org/12093015/diff/1/cc/layer_tree_host.cc File ...
7 years, 10 months ago (2013-01-28 20:29:03 UTC) #2
enne (OOO)
Thanks for this. Removing the PinchZoomViewport is exciting to see. https://codereview.chromium.org/12093015/diff/1/cc/layer_tree_host.cc File cc/layer_tree_host.cc (right): https://codereview.chromium.org/12093015/diff/1/cc/layer_tree_host.cc#newcode305 ...
7 years, 10 months ago (2013-01-28 21:03:45 UTC) #3
aelias_OOO_until_Jul13
OK, all suggestions applied. https://codereview.chromium.org/12093015/diff/1/cc/layer_tree_host.cc File cc/layer_tree_host.cc (right): https://codereview.chromium.org/12093015/diff/1/cc/layer_tree_host.cc#newcode302 cc/layer_tree_host.cc:302: if (m_settings.implSidePainting) { On 2013/01/28 ...
7 years, 10 months ago (2013-01-29 06:05:13 UTC) #4
enne (OOO)
lgtm
7 years, 10 months ago (2013-01-29 06:07:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/12093015/9003
7 years, 10 months ago (2013-01-30 03:31:13 UTC) #6
commit-bot: I haz the power
7 years, 10 months ago (2013-01-30 12:10:53 UTC) #7
Message was sent while issue was closed.
Change committed as 179607

Powered by Google App Engine
This is Rietveld 408576698