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

Issue 336433003: Clobber frame_data->device_scale_factor to 1 on Android. (Closed)

Created:
6 years, 6 months ago by aelias_OOO_until_Jul13
Modified:
6 years, 6 months ago
Reviewers:
jamesr, boliu
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, android-webview-reviews_chromium.org, miu+watch_chromium.org, powei, no sievers, danakj
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Clobber frame_data->device_scale_factor to 1 on Android. On Android, the browser compositor lies to CC about the device_scale_factor (always setting it to 1), because it places its layers in physical pixel space. Because of that, the delegated device scale inversion added in https://codereview.chromium.org/311253004 does the wrong thing. Rather than cancelling the inversion with other transforms, the simplest fix is to lie about the frame_data device_scale_factor as well. BUG=383572, 383436, 384134 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276882

Patch Set 1 #

Total comments: 8

Patch Set 2 : git cl try #

Patch Set 3 : Remove readback scale, add other crbug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -16 lines) Patch
M android_webview/browser/hardware_renderer.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 chunks +8 lines, -16 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
aelias_OOO_until_Jul13
While starting to add a setting I realized we already had a hook in the ...
6 years, 6 months ago (2014-06-12 22:57:49 UTC) #1
jamesr
Seems about as reasonable as any other change. lgtm https://codereview.chromium.org/336433003/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/336433003/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode695 content/browser/renderer_host/render_widget_host_view_android.cc:695: ...
6 years, 6 months ago (2014-06-12 23:00:04 UTC) #2
boliu
lgtm
6 years, 6 months ago (2014-06-12 23:19:57 UTC) #3
aelias_OOO_until_Jul13
https://codereview.chromium.org/336433003/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/336433003/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode695 content/browser/renderer_host/render_widget_host_view_android.cc:695: gfx::Transform layer_scale( On 2014/06/12 23:00:04, jamesr wrote: > you ...
6 years, 6 months ago (2014-06-13 00:17:46 UTC) #4
jamesr
https://codereview.chromium.org/336433003/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/336433003/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode695 content/browser/renderer_host/render_widget_host_view_android.cc:695: gfx::Transform layer_scale( On 2014/06/13 00:17:46, aelias wrote: > On ...
6 years, 6 months ago (2014-06-13 00:27:53 UTC) #5
aelias_OOO_until_Jul13
https://codereview.chromium.org/336433003/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/336433003/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode695 content/browser/renderer_host/render_widget_host_view_android.cc:695: gfx::Transform layer_scale( On 2014/06/13 00:27:53, jamesr wrote: > On ...
6 years, 6 months ago (2014-06-13 00:36:07 UTC) #6
aelias_OOO_until_Jul13
The CQ bit was checked by aelias@chromium.org
6 years, 6 months ago (2014-06-13 01:36:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/336433003/40001
6 years, 6 months ago (2014-06-13 01:37:26 UTC) #8
commit-bot: I haz the power
6 years, 6 months ago (2014-06-13 01:41:21 UTC) #9
Message was sent while issue was closed.
Change committed as 276882

Powered by Google App Engine
This is Rietveld 408576698