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

Issue 941523002: Rename: background_is_transparent -> subpixel_rendering_enabled (Closed)

Created:
5 years, 10 months ago by Jun Mukai
Modified:
5 years, 10 months ago
Reviewers:
msw, Daniel Erat, sky
CC:
chromium-reviews, yusukes+watch_chromium.org, derat+watch_chromium.org, yukishiino+watch_chromium.org, tfarina, penghuang+watch_chromium.org, nona+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename: background_is_transparent -> subpixel_rendering_enabled This is derived from crrev.com/867003002. RenderText::background_is_transparent() field does not directly mean the background color is transparent. This is a flag to control the subpixel rendering (see canvas_skia.cc) and can be set for various reasons. Considering this situation, it is clearer to rename the field to subpixel_rendering_enabled(). R=msw@chromium.org TEST=no functional changes, build succeeds BUG=None Committed: https://crrev.com/4b75bd7856f4838e43bbda59badd9c2031da2073 Cr-Commit-Position: refs/heads/master@{#317139}

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase #

Patch Set 3 : comments addressed #

Total comments: 2

Patch Set 4 : enabled -> suppressed #

Patch Set 5 : win fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -21 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/canvas_skia.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/harfbuzz_font_skia.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/harfbuzz_font_skia.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ui/gfx/render_text.h View 1 2 3 4 chunks +10 lines, -7 lines 0 comments Download
M ui/gfx/render_text.cc View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 23 (8 generated)
Jun Mukai
5 years, 10 months ago (2015-02-19 00:50:08 UTC) #1
msw
lgtm with nits https://codereview.chromium.org/941523002/diff/1/ui/gfx/canvas_skia.cc File ui/gfx/canvas_skia.cc (right): https://codereview.chromium.org/941523002/diff/1/ui/gfx/canvas_skia.cc#newcode146 ui/gfx/canvas_skia.cc:146: render_text->set_subpixel_rendering_enabled(false); nit: maybe this should be ...
5 years, 10 months ago (2015-02-19 00:56:25 UTC) #2
Jun Mukai
https://codereview.chromium.org/941523002/diff/1/ui/gfx/canvas_skia.cc File ui/gfx/canvas_skia.cc (right): https://codereview.chromium.org/941523002/diff/1/ui/gfx/canvas_skia.cc#newcode146 ui/gfx/canvas_skia.cc:146: render_text->set_subpixel_rendering_enabled(false); On 2015/02/19 00:56:24, msw wrote: > nit: maybe ...
5 years, 10 months ago (2015-02-19 02:07:49 UTC) #4
Jun Mukai
sky, could you review this? (especially for chrome/browser/ui/views and ui/views)
5 years, 10 months ago (2015-02-19 02:08:26 UTC) #6
Daniel Erat
the new name is inaccurate. the actual meaning of this field is more like "subpixel_rendering_not_forced_off". ...
5 years, 10 months ago (2015-02-19 13:49:31 UTC) #8
sky
LGTM https://codereview.chromium.org/941523002/diff/40001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/941523002/diff/40001/ui/views/controls/textfield/textfield.cc#newcode1651 ui/views/controls/textfield/textfield.cc:1651: // Disable subpixel rendering when the background color ...
5 years, 10 months ago (2015-02-19 17:51:04 UTC) #9
Jun Mukai
On 2015/02/19 13:49:31, Daniel Erat wrote: > the new name is inaccurate. the actual meaning ...
5 years, 10 months ago (2015-02-19 18:24:52 UTC) #10
Daniel Erat
On 2015/02/19 18:24:52, Jun Mukai wrote: > On 2015/02/19 13:49:31, Daniel Erat wrote: > > ...
5 years, 10 months ago (2015-02-19 18:39:41 UTC) #11
Jun Mukai
https://codereview.chromium.org/941523002/diff/40001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/941523002/diff/40001/ui/views/controls/textfield/textfield.cc#newcode1651 ui/views/controls/textfield/textfield.cc:1651: // Disable subpixel rendering when the background color is ...
5 years, 10 months ago (2015-02-19 18:54:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/941523002/60001
5 years, 10 months ago (2015-02-19 18:55:45 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/28221)
5 years, 10 months ago (2015-02-19 19:43:32 UTC) #17
msw
new naming lgtm
5 years, 10 months ago (2015-02-19 19:59:28 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/941523002/80001
5 years, 10 months ago (2015-02-19 20:33:35 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-19 21:44:56 UTC) #22
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 21:45:30 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4b75bd7856f4838e43bbda59badd9c2031da2073
Cr-Commit-Position: refs/heads/master@{#317139}

Powered by Google App Engine
This is Rietveld 408576698