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

Issue 2390923002: Fix blurry content after disabling dev tools emulation (Closed)

Created:
4 years, 2 months ago by enne (OOO)
Modified:
4 years, 2 months ago
Reviewers:
chrishtr, pdr., vmpstr
CC:
apavlov+blink_chromium.org, blink-reviews, blink-reviews-api_chromium.org, caseq+blink_chromium.org, cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, devtools-reviews_chromium.org, dglazkov+blink, jam, kinuko+watch, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, mlamouri+watch-content_chromium.org, pfeldman+blink_chromium.org, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix blurry content after disabling dev tools emulation There's a race between page resize and devtools emulation disabling which can change the root layer transform scale. If a commit occurs after the page resize but before the scale, then layers end up picking the wrong scale, and if they have will-change on them then they will not change again after the root layer transform scale. This scale isn't really part of the page or under the author's control, and so will-change should be ignored when devtools changes the scale and content should always be rerastered and the ideal scale. This patch implements that behavior by plumbing a flag all the way from the devtools scale change to LayerTreeHost which then then resets the raster scale on all the picture layers after commit. BUG=630979 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/8a4cb786c49505784365acdb1ca4037df64b341f Cr-Commit-Position: refs/heads/master@{#422914}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix whitespace, unneeded function #

Patch Set 3 : Rename testing function too #

Total comments: 2

Patch Set 4 : Add function for LayerTreeHostRemote #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -29 lines) Patch
M cc/blimp/layer_tree_host_remote.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/blimp/layer_tree_host_remote.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl.h View 2 chunks +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_in_process.h View 2 chunks +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_in_process.cc View 3 chunks +9 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_picture.cc View 1 chunk +100 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/DevToolsEmulator.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 chunks +18 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 10 chunks +22 lines, -11 lines 0 comments Download
M third_party/WebKit/public/platform/WebLayerTreeView.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (15 generated)
enne (OOO)
wdyt? https://codereview.chromium.org/2390923002/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2390923002/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode4580 third_party/WebKit/Source/web/WebViewImpl.cpp:4580: void WebViewImpl::updateDeviceEmulationTransform() { Renamed this as devtools is ...
4 years, 2 months ago (2016-10-03 23:27:30 UTC) #3
vmpstr
Thanks for looking into this. I think the plumbing and the new functionality makes sense. ...
4 years, 2 months ago (2016-10-04 00:25:53 UTC) #4
enne (OOO)
+pdr for Blink Source/web and public/platform +chrishtr FYI for some nuance on dealing with will-change: ...
4 years, 2 months ago (2016-10-04 16:49:21 UTC) #7
pdr.
On 2016/10/04 at 16:49:21, enne wrote: > +pdr for Blink Source/web and public/platform LGTM
4 years, 2 months ago (2016-10-04 20:19:10 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2390923002/60001
4 years, 2 months ago (2016-10-04 20:28:55 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-04 20:37:16 UTC) #20
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 20:41:33 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8a4cb786c49505784365acdb1ca4037df64b341f
Cr-Commit-Position: refs/heads/master@{#422914}

Powered by Google App Engine
This is Rietveld 408576698