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

Issue 1412663005: Introduce painted-device-scale-factor and use it when --enable-use-zoom-for-dsf is specified. (Closed)

Created:
5 years, 2 months ago by oshima
Modified:
5 years, 1 month ago
CC:
achuith+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, cc-bugs_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, davemoore+watch_chromium.org, dglazkov+blink, dzhioev+watch_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, oshima+watch_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce painted-device-scale-factor and use it when --enable-use-zoom-for-dsf is specified. This only handles the main content. Other things (Inputs/popup/plugins etc) will be handled in separate CLs. Note to reviewer: the name painted_device_scale_factor is proposed by danakj@ in https://docs.google.com/a/chromium.org/document/d/1_40BGUBIGCmII3FaXdh-daOoxcCar7TnVpH0hldYgO8/edit?disco=AAAAAS8YQhA BUG=485650 R=danakj@chromium.org, piman@chromium.org, aelias@chromium.org, rbyers@chromium.org TEST=LayerTreeHostPaintedDeviceScaleFactor CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/750cb4349069151c8ad1f446f92ecf66a2f9023f Cr-Commit-Position: refs/heads/master@{#357245}

Patch Set 1 #

Total comments: 34

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Total comments: 13

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : remove mode check from RWC #

Patch Set 8 : export switch, remove WebWidgetClient::deviceScaleFactor #

Total comments: 3

Patch Set 9 : updated comment #

Total comments: 4

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -37 lines) Patch
M cc/trees/layer_tree_host.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 7 3 chunks +11 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 7 1 chunk +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 2 3 4 5 6 2 chunks +1 line, -3 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -6 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 4 chunks +13 lines, -3 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 chunks +36 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/web/WebPagePopupImpl.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebView.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebWidgetClient.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 60 (22 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412663005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412663005/1
5 years, 2 months ago (2015-10-22 21:41:35 UTC) #3
oshima
The size of change is actually small, so please review all files. https://codereview.chromium.org/1412663005/diff/1/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc ...
5 years, 2 months ago (2015-10-22 21:47:42 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/111236)
5 years, 2 months ago (2015-10-22 22:33:54 UTC) #10
danakj
The cc parts look good, couple comments. Pretty hazy on the content parts and I ...
5 years, 2 months ago (2015-10-22 23:15:30 UTC) #12
oshima
I'm looking into dana's suggestion for the test, but other comments are addressed. https://codereview.chromium.org/1412663005/diff/1/cc/trees/layer_tree_host.cc File ...
5 years, 2 months ago (2015-10-23 18:05:37 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412663005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412663005/20001
5 years, 2 months ago (2015-10-23 18:15:20 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/111637)
5 years, 2 months ago (2015-10-23 19:05:32 UTC) #17
piman
https://codereview.chromium.org/1412663005/diff/1/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/1412663005/diff/1/content/renderer/gpu/render_widget_compositor.cc#newcode625 content/renderer/gpu/render_widget_compositor.cc:625: layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); On 2015/10/23 18:05:36, oshima wrote: > On 2015/10/22 ...
5 years, 2 months ago (2015-10-23 19:30:34 UTC) #18
enne (OOO)
https://codereview.chromium.org/1412663005/diff/1/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/1412663005/diff/1/content/renderer/gpu/render_widget_compositor.cc#newcode625 content/renderer/gpu/render_widget_compositor.cc:625: layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); On 2015/10/23 at 19:30:33, piman (slow to review) ...
5 years, 2 months ago (2015-10-23 21:21:25 UTC) #19
oshima
https://codereview.chromium.org/1412663005/diff/1/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1412663005/diff/1/cc/trees/layer_tree_host_unittest.cc#newcode6410 cc/trees/layer_tree_host_unittest.cc:6410: void SwapBuffersOnThread(LayerTreeHostImpl* host_impl, bool result) override { On 2015/10/22 ...
5 years, 2 months ago (2015-10-23 22:05:02 UTC) #21
oshima
https://codereview.chromium.org/1412663005/diff/1/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/1412663005/diff/1/content/renderer/render_widget.cc#newcode783 content/renderer/render_widget.cc:783: gfx::ScaleSize(gfx::SizeF(visible_viewport_size), device_scale_factor_); On 2015/10/23 19:30:33, piman (slow to review) ...
5 years, 2 months ago (2015-10-23 23:50:05 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412663005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412663005/80001
5 years, 2 months ago (2015-10-23 23:51:01 UTC) #24
danakj
https://codereview.chromium.org/1412663005/diff/80001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1412663005/diff/80001/cc/trees/layer_tree_host_unittest.cc#newcode6393 cc/trees/layer_tree_host_unittest.cc:6393: EXPECT_EQ(2.0f, Great, thanks. The cc parts LGTM
5 years, 2 months ago (2015-10-24 00:07:00 UTC) #25
danakj
Oh few small things: https://codereview.chromium.org/1412663005/diff/80001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1412663005/diff/80001/cc/trees/layer_tree_host_unittest.cc#newcode38 cc/trees/layer_tree_host_unittest.cc:38: #include "cc/test/fake_output_surface_client.h" not needed? https://codereview.chromium.org/1412663005/diff/80001/cc/trees/layer_tree_host_unittest.cc#newcode6403 ...
5 years, 2 months ago (2015-10-24 00:08:07 UTC) #26
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/111847)
5 years, 2 months ago (2015-10-24 00:33:11 UTC) #28
aelias_OOO_until_Jul13
My main comment is that I'm unhappy with the changes to RenderWidget and would like ...
5 years, 2 months ago (2015-10-25 00:07:11 UTC) #29
oshima
On 2015/10/25 00:07:11, aelias wrote: > My main comment is that I'm unhappy with the ...
5 years, 1 month ago (2015-10-27 17:52:40 UTC) #30
eae
As the system is designed today the css pixel to device pixel conversion needs to ...
5 years, 1 month ago (2015-10-27 18:00:51 UTC) #31
oshima
I'll update the doc to continue discussion on coordinate conversion. (I'm memory sheriff and need ...
5 years, 1 month ago (2015-10-27 20:28:09 UTC) #32
danakj
https://codereview.chromium.org/1412663005/diff/80001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/1412663005/diff/80001/content/renderer/render_widget.cc#newcode1961 content/renderer/render_widget.cc:1961: if (IsUseZoomForDSFEnabled()) { On 2015/10/27 20:28:09, oshima wrote: > ...
5 years, 1 month ago (2015-10-27 20:33:47 UTC) #33
aelias_OOO_until_Jul13
OK, lgtm to land this as is, based on the point that the coordinate conversion ...
5 years, 1 month ago (2015-10-28 02:00:55 UTC) #34
oshima
On 2015/10/28 02:00:55, aelias wrote: > OK, lgtm to land this as is, based on ...
5 years, 1 month ago (2015-10-30 06:13:21 UTC) #35
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412663005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412663005/140001
5 years, 1 month ago (2015-10-30 14:48:36 UTC) #37
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/73445)
5 years, 1 month ago (2015-10-30 15:14:52 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412663005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412663005/160001
5 years, 1 month ago (2015-10-30 15:55:53 UTC) #42
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/114441)
5 years, 1 month ago (2015-10-30 16:43:13 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412663005/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412663005/180001
5 years, 1 month ago (2015-10-30 17:35:18 UTC) #46
oshima
piman@, enne@, please take another look. rbyers@ -> WebKit/public owner https://codereview.chromium.org/1412663005/diff/1/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/1412663005/diff/1/content/renderer/gpu/render_widget_compositor.cc#newcode625 ...
5 years, 1 month ago (2015-10-30 17:35:39 UTC) #48
Rick Byers
https://codereview.chromium.org/1412663005/diff/180001/third_party/WebKit/public/web/WebView.h File third_party/WebKit/public/web/WebView.h (right): https://codereview.chromium.org/1412663005/diff/180001/third_party/WebKit/public/web/WebView.h#newcode296 third_party/WebKit/public/web/WebView.h:296: // Sets the additional zoom factor used for device ...
5 years, 1 month ago (2015-10-30 17:50:10 UTC) #49
Rick Byers
https://codereview.chromium.org/1412663005/diff/180001/third_party/WebKit/public/web/WebView.h File third_party/WebKit/public/web/WebView.h (right): https://codereview.chromium.org/1412663005/diff/180001/third_party/WebKit/public/web/WebView.h#newcode296 third_party/WebKit/public/web/WebView.h:296: // Sets the additional zoom factor used for device ...
5 years, 1 month ago (2015-10-30 17:50:10 UTC) #50
oshima
https://codereview.chromium.org/1412663005/diff/180001/third_party/WebKit/public/web/WebView.h File third_party/WebKit/public/web/WebView.h (right): https://codereview.chromium.org/1412663005/diff/180001/third_party/WebKit/public/web/WebView.h#newcode296 third_party/WebKit/public/web/WebView.h:296: // Sets the additional zoom factor used for device ...
5 years, 1 month ago (2015-10-30 18:14:18 UTC) #51
Rick Byers
https://codereview.chromium.org/1412663005/diff/180001/third_party/WebKit/public/web/WebView.h File third_party/WebKit/public/web/WebView.h (right): https://codereview.chromium.org/1412663005/diff/180001/third_party/WebKit/public/web/WebView.h#newcode296 third_party/WebKit/public/web/WebView.h:296: // Sets the additional zoom factor used for device ...
5 years, 1 month ago (2015-10-30 19:03:22 UTC) #52
piman
https://codereview.chromium.org/1412663005/diff/200001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/1412663005/diff/200001/content/renderer/render_view_impl.cc#newcode3708 content/renderer/render_view_impl.cc:3708: compositor_->SetPaintedDeviceScaleFactor(device_scale_factor_); side note: this is probably good enough for ...
5 years, 1 month ago (2015-10-30 21:32:02 UTC) #53
oshima
https://codereview.chromium.org/1412663005/diff/200001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/1412663005/diff/200001/content/renderer/render_view_impl.cc#newcode3708 content/renderer/render_view_impl.cc:3708: compositor_->SetPaintedDeviceScaleFactor(device_scale_factor_); On 2015/10/30 21:32:02, piman (slow to review) wrote: ...
5 years, 1 month ago (2015-10-30 23:23:12 UTC) #54
piman
lgtm
5 years, 1 month ago (2015-10-30 23:25:03 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412663005/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412663005/220001
5 years, 1 month ago (2015-10-30 23:46:22 UTC) #58
commit-bot: I haz the power
Committed patchset #10 (id:220001)
5 years, 1 month ago (2015-10-31 00:59:10 UTC) #59
commit-bot: I haz the power
5 years, 1 month ago (2015-10-31 01:00:10 UTC) #60
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/750cb4349069151c8ad1f446f92ecf66a2f9023f
Cr-Commit-Position: refs/heads/master@{#357245}

Powered by Google App Engine
This is Rietveld 408576698