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

Issue 2661313005: Add extra DCHECKing to try to catch subpixel rendering on a non-opaque (Closed)

Created:
3 years, 10 months ago by Evan Stade
Modified:
3 years, 10 months ago
Reviewers:
sadrul, Daniel Erat, msw
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add extra DCHECKing to try to catch subpixel rendering on a non-opaque background. This may not catch all such issues, but it would serve as an early warning system for some cases. For example, if you remove the subpixel-disabling from ImeListView, this DCHECK will trigger when you click on it (which applies a ripple and adds a layer). BUG=none Review-Url: https://codereview.chromium.org/2661313005 Cr-Commit-Position: refs/heads/master@{#450074} Committed: https://chromium.googlesource.com/chromium/src/+/853ae34d50f8322dbc272b7d92382a6a3ce3a0ab

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : checkpoint #

Total comments: 4

Patch Set 4 : just check one line #

Total comments: 6

Patch Set 5 : sadrul review #

Total comments: 4

Patch Set 6 : msw review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/controls/label.cc View 1 2 3 4 5 3 chunks +25 lines, -1 line 0 comments Download

Messages

Total messages: 47 (33 generated)
Evan Stade
3 years, 10 months ago (2017-02-06 21:33:14 UTC) #19
Daniel Erat
lgtm with a suggestion https://codereview.chromium.org/2661313005/diff/40001/ui/views/controls/label.cc File ui/views/controls/label.cc (right): https://codereview.chromium.org/2661313005/diff/40001/ui/views/controls/label.cc#newcode460 ui/views/controls/label.cc:460: if (!lines_[i]->subpixel_rendering_suppressed()) { as a ...
3 years, 10 months ago (2017-02-06 22:35:49 UTC) #20
sadrul
Some of the tests seem to be flakily crashing? Any idea what's up with that? ...
3 years, 10 months ago (2017-02-07 03:36:39 UTC) #21
Evan Stade
those aren't flakes, those are actual bugs which I found with this patch and fixed ...
3 years, 10 months ago (2017-02-07 23:51:23 UTC) #22
Evan Stade
https://codereview.chromium.org/2661313005/diff/40001/ui/views/controls/label.cc File ui/views/controls/label.cc (right): https://codereview.chromium.org/2661313005/diff/40001/ui/views/controls/label.cc#newcode460 ui/views/controls/label.cc:460: if (!lines_[i]->subpixel_rendering_suppressed()) { On 2017/02/06 22:35:49, Daniel Erat wrote: ...
3 years, 10 months ago (2017-02-07 23:55:19 UTC) #24
Daniel Erat
lgtm
3 years, 10 months ago (2017-02-08 00:09:02 UTC) #26
sadrul
lgtm https://codereview.chromium.org/2661313005/diff/60001/ui/views/controls/label.cc File ui/views/controls/label.cc (right): https://codereview.chromium.org/2661313005/diff/60001/ui/views/controls/label.cc#newcode458 ui/views/controls/label.cc:458: if (!lines_.empty()) { early return insrtead https://codereview.chromium.org/2661313005/diff/60001/ui/views/controls/label.cc#newcode462 ui/views/controls/label.cc:462: ...
3 years, 10 months ago (2017-02-08 02:13:56 UTC) #29
Evan Stade
+msw for bookmark_bar_view_test.cc https://codereview.chromium.org/2661313005/diff/60001/ui/views/controls/label.cc File ui/views/controls/label.cc (right): https://codereview.chromium.org/2661313005/diff/60001/ui/views/controls/label.cc#newcode458 ui/views/controls/label.cc:458: if (!lines_.empty()) { On 2017/02/08 02:13:56, ...
3 years, 10 months ago (2017-02-11 00:18:07 UTC) #31
msw
lgtm with nits https://codereview.chromium.org/2661313005/diff/80001/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc (right): https://codereview.chromium.org/2661313005/diff/80001/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc#newcode304 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc:304: // Real bookmark bars get a ...
3 years, 10 months ago (2017-02-11 00:49:37 UTC) #34
Evan Stade
https://codereview.chromium.org/2661313005/diff/80001/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc (right): https://codereview.chromium.org/2661313005/diff/80001/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc#newcode304 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc:304: // Real bookmark bars get a BookmarkBarViewBackground. Set a ...
3 years, 10 months ago (2017-02-11 01:42:38 UTC) #37
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/2661313005/100001
3 years, 10 months ago (2017-02-11 01:43:27 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/309275)
3 years, 10 months ago (2017-02-11 07:44:32 UTC) #42
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/2661313005/100001
3 years, 10 months ago (2017-02-13 19:37:18 UTC) #44
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 20:48:45 UTC) #47
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/853ae34d50f8322dbc272b7d9238...

Powered by Google App Engine
This is Rietveld 408576698