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

Issue 12212156: cc: Only allow trees created at the current viewport size to draw. (Closed)

Created:
7 years, 10 months ago by aelias_OOO_until_Jul13
Modified:
7 years, 10 months ago
Reviewers:
danakj, nduca, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, klobag, epenner
Visibility:
Public.

Description

cc: Only allow trees created at the current viewport size to draw. When we're on a small page whose WebKit layout size is equal to the viewport size, and the viewport size grows, we don't have enough content to fill the screen until the pending tree finishes rasterizing. This patch disallows drawing on the active tree when the viewport size has recently changed. NOTRY=true BUG=173449 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182357

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move viewport sizes out of LTHI #

Total comments: 9

Patch Set 3 : Style nits #

Total comments: 1

Patch Set 4 : 2-space indent #

Patch Set 5 : Fix to contents purged style approach #

Total comments: 3

Patch Set 6 : Fix nits and rebase to 182333 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -3 lines) Patch
M cc/layer_tree_host.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M cc/layer_tree_impl.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M cc/layer_tree_impl.cc View 1 2 3 4 3 chunks +20 lines, -0 lines 0 comments Download
M cc/thread_proxy.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
aelias_OOO_until_Jul13
Hi, this is the fix for the transient google maps keyboard glitch.
7 years, 10 months ago (2013-02-13 05:31:32 UTC) #1
nduca
Nice! So, dumb question, once you know that there's a viewport mismatch as you've done ...
7 years, 10 months ago (2013-02-13 05:35:21 UTC) #2
aelias_OOO_until_Jul13
The content ends up actually positioned incorrectly (at the bottom instead of the top) so ...
7 years, 10 months ago (2013-02-13 05:39:29 UTC) #3
nduca
Got it. if you did, though, you'd white flash?
7 years, 10 months ago (2013-02-13 05:41:09 UTC) #4
danakj
https://codereview.chromium.org/12212156/diff/1/cc/layer_tree_host_impl.cc File cc/layer_tree_host_impl.cc (right): https://codereview.chromium.org/12212156/diff/1/cc/layer_tree_host_impl.cc#newcode1100 cc/layer_tree_host_impl.cc:1100: m_deviceViewportSize = deviceViewportSize; Can you just remove the m_deviceViewportSize ...
7 years, 10 months ago (2013-02-13 05:44:30 UTC) #5
aelias_OOO_until_Jul13
Yes, it would white flash instead of black/corrupt flash. OK, in this patchset I moved ...
7 years, 10 months ago (2013-02-13 06:37:29 UTC) #6
danakj
On Tue, Feb 12, 2013 at 10:37 PM, <aelias@chromium.org> wrote: > Yes, it would white ...
7 years, 10 months ago (2013-02-13 06:46:53 UTC) #7
danakj
https://codereview.chromium.org/12212156/diff/7001/cc/layer_tree_host_impl.cc File cc/layer_tree_host_impl.cc (right): https://codereview.chromium.org/12212156/diff/7001/cc/layer_tree_host_impl.cc#newcode293 cc/layer_tree_host_impl.cc:293: gfx::SizeF viewportSize = gfx::ScaleSize(deviceViewportSize(), 1 / m_deviceScaleFactor); Is this ...
7 years, 10 months ago (2013-02-13 06:51:35 UTC) #8
aelias_OOO_until_Jul13
https://codereview.chromium.org/12212156/diff/7001/cc/layer_tree_host_impl.cc File cc/layer_tree_host_impl.cc (right): https://codereview.chromium.org/12212156/diff/7001/cc/layer_tree_host_impl.cc#newcode293 cc/layer_tree_host_impl.cc:293: gfx::SizeF viewportSize = gfx::ScaleSize(deviceViewportSize(), 1 / m_deviceScaleFactor); On 2013/02/13 ...
7 years, 10 months ago (2013-02-13 07:37:08 UTC) #9
danakj
This LGTM but I think enne should double check on it. https://codereview.chromium.org/12212156/diff/4002/cc/layer_tree_impl.cc File cc/layer_tree_impl.cc (right): ...
7 years, 10 months ago (2013-02-13 08:19:54 UTC) #10
enne (OOO)
I'm sorry to come back and be like "I liked the first way better", but...well, ...
7 years, 10 months ago (2013-02-13 17:17:05 UTC) #11
aelias_OOO_until_Jul13
OK, I changed it like enne suggested. I agree it's more explicit what's going on ...
7 years, 10 months ago (2013-02-13 22:12:54 UTC) #12
enne (OOO)
lgtm, thanks. https://codereview.chromium.org/12212156/diff/16001/cc/layer_tree_host.cc File cc/layer_tree_host.cc (right): https://codereview.chromium.org/12212156/diff/16001/cc/layer_tree_host.cc#newcode331 cc/layer_tree_host.cc:331: if (syncTree->ViewportSizeInvalid()) Maybe just always do this? ...
7 years, 10 months ago (2013-02-13 22:41:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/12212156/21015
7 years, 10 months ago (2013-02-14 00:47:20 UTC) #14
commit-bot: I haz the power
7 years, 10 months ago (2013-02-14 00:54:30 UTC) #15
Message was sent while issue was closed.
Change committed as 182357

Powered by Google App Engine
This is Rietveld 408576698