|
|
DescriptionUse org.gnome.desktop.interface text-scaling-factor directly
gtk-xft-dpi is updated based on this value, so using this directly makes more sense.
BUG=511580
TEST=manual.
Committed: https://crrev.com/42de8ba1ba55502417670a820b5bd57017a6cd29
Cr-Commit-Position: refs/heads/master@{#339957}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #Patch Set 7 : #Patch Set 8 : rebase, update pixel expectations to update the expected results #
Total comments: 4
Patch Set 9 : #
Messages
Total messages: 52 (23 generated)
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242753005/20001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
oshima@chromium.org changed reviewers: + estade@chromium.org
seems legit, but I don't really know with certainty. Rubbery lgtm.
stapelberg@google.com changed reviewers: + stapelberg@google.com
lgtm I built Chrome with this CL patched in and can confirm that it works as intended.
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242753005/40001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242753005/60001
Patchset #4 (id:60001) has been deleted
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242753005/80001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242753005/120001
estade@, can you take another look? 1) I have to check if the schema exists. On non-gnome environment, I have to check if the scheme exists. 2) I have to use deprecated API (g_settings_list_schemas) because it's not always available on the platform we support and CQ bots.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242753005/140001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ni...) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242753005/160001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
kbr@ -> pixel_expectations.py This CL fixes the scale factor computations, which affected nvidia bots. I'll update the page set revision and revert the expectation in follow up CLs.
oshima@chromium.org changed reviewers: + kbr@chromium.org
# oops, hit send too early. kbr@ -> pixel_expectations.py This CL fixes the scale factor computations, which affected nvidia bots. I'll update the page set revision and revert the expectation in follow up CLs. estade@, please review this again. stapelberg@, can you test this patch again?
LGTM assuming the expectations are updated in a follow-on CL.
estate@: ping?
https://codereview.chromium.org/1242753005/diff/160001/chrome/browser/ui/libg... File chrome/browser/ui/libgtk2ui/gtk2_ui.cc (right): https://codereview.chromium.org/1242753005/diff/160001/chrome/browser/ui/libg... chrome/browser/ui/libgtk2ui/gtk2_ui.cc:430: bool HasSchema(const char* schema_name) { I see this is copied from elsewhere in chrome, but why is it not a for loop? Also, I'd just inline it till it's needed in more than one place in this file. https://codereview.chromium.org/1242753005/diff/160001/chrome/browser/ui/libg... chrome/browser/ui/libgtk2ui/gtk2_ui.cc:445: GSettings* settings = g_settings_new(kDesktopInterfaceSchema); can we cache the return value since the scale factor doesn't update anyway? From poking around online, it seems that g_settings_new might be somewhat expensive, and it's unclear to me how often GetDeviceScaleFactor is called.
Patchset #9 (id:180001) has been deleted
Patchset #9 (id:200001) has been deleted
https://codereview.chromium.org/1242753005/diff/160001/chrome/browser/ui/libg... File chrome/browser/ui/libgtk2ui/gtk2_ui.cc (right): https://codereview.chromium.org/1242753005/diff/160001/chrome/browser/ui/libg... chrome/browser/ui/libgtk2ui/gtk2_ui.cc:430: bool HasSchema(const char* schema_name) { On 2015/07/22 17:53:30, Evan Stade wrote: > I see this is copied from elsewhere in chrome, but why is it not a for loop? I just didn't feel a need to change or refactor. Done. > Also, I'd just inline it till it's needed in more than one place in this file. Sure. https://codereview.chromium.org/1242753005/diff/160001/chrome/browser/ui/libg... chrome/browser/ui/libgtk2ui/gtk2_ui.cc:445: GSettings* settings = g_settings_new(kDesktopInterfaceSchema); On 2015/07/22 17:53:30, Evan Stade wrote: > can we cache the return value since the scale factor doesn't update anyway? From > poking around online, it seems that g_settings_new might be somewhat expensive, > and it's unclear to me how often GetDeviceScaleFactor is called. This is called only once as the value is assigned to static, but I should use the rounded value instead. Thank you for pointing this out.
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242753005/180002
lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by oshima@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from stapelberg@google.com, kbr@chromium.org Link to the patchset: https://codereview.chromium.org/1242753005/#ps180002 (title: " ")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242753005/180002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1242753005/180002
Message was sent while issue was closed.
Committed patchset #9 (id:180002)
Message was sent while issue was closed.
Patchset 9 (id:??) landed as https://crrev.com/42de8ba1ba55502417670a820b5bd57017a6cd29 Cr-Commit-Position: refs/heads/master@{#339957} |