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

Issue 2090203002: Remove antialiasing from views bounds rects. (Closed)

Created:
4 years, 6 months ago by Bret
Modified:
4 years, 6 months ago
Reviewers:
danakj, chrishtr, sky
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, Use pkasting(at)chromium.org, sievers+watch_chromium.org, sky, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove antialiasing from views bounds rects. A views object clips drawing to its rectangular bounds. Those bounds are in DIPs, and have antialiasing turned on. At non-integral scale factors those bounds might not be pixel-aligned. When that happens it can cause artifacting, so it needs antialiasing turned off. Since Blink appears to need antialiasing turned on, this patch adds a field to ClipDisplayItem so that each callsite can do the thing it wants. BUG=615153 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/e11a8ea32baa62619f66c2e1104786ad861e9c05 Cr-Commit-Position: refs/heads/master@{#401726}

Patch Set 1 #

Total comments: 6

Patch Set 2 : edits #

Patch Set 3 : fix display_item_list_unittest #

Patch Set 4 : ClipDisplayItem now largest on Linux64 #

Patch Set 5 : take the max of ClipDisplayItem and TransformDisplayItem #

Patch Set 6 : std::max is bad apparently #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -23 lines) Patch
M cc/blink/web_display_item_list_impl.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M cc/playback/clip_display_item.h View 2 chunks +5 lines, -2 lines 0 comments Download
M cc/playback/clip_display_item.cc View 1 3 chunks +13 lines, -10 lines 0 comments Download
M cc/playback/display_item_list_unittest.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M cc/playback/largest_display_item.cc View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download
M cc/proto/display_item.proto View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/clip_recorder.cc View 1 1 chunk +6 lines, -5 lines 0 comments Download

Messages

Total messages: 45 (20 generated)
Bret
4 years, 6 months ago (2016-06-22 22:32:34 UTC) #4
danakj
https://codereview.chromium.org/2090203002/diff/1/cc/playback/clip_display_item.cc File cc/playback/clip_display_item.cc (right): https://codereview.chromium.org/2090203002/diff/1/cc/playback/clip_display_item.cc#newcode70 cc/playback/clip_display_item.cc:70: bool antialiased = antialias_; just use antialias_ throughout, drop ...
4 years, 6 months ago (2016-06-22 22:49:57 UTC) #5
Bret
https://codereview.chromium.org/2090203002/diff/1/cc/playback/clip_display_item.cc File cc/playback/clip_display_item.cc (right): https://codereview.chromium.org/2090203002/diff/1/cc/playback/clip_display_item.cc#newcode70 cc/playback/clip_display_item.cc:70: bool antialiased = antialias_; On 2016/06/22 22:49:57, danakj wrote: ...
4 years, 6 months ago (2016-06-22 23:39:42 UTC) #6
danakj
LGTM +sky FYI this changes all clips in the ui.
4 years, 6 months ago (2016-06-22 23:54:53 UTC) #7
danakj
LGTM +sky FYI this changes all clips in the ui.
4 years, 6 months ago (2016-06-22 23:54:56 UTC) #8
sky
Does this impact how we schedule damage regions? By that I mean if views is ...
4 years, 6 months ago (2016-06-22 23:58:40 UTC) #10
Bret
On 2016/06/22 23:54:56, danakj wrote: > LGTM > > +sky FYI this changes all clips ...
4 years, 6 months ago (2016-06-22 23:59:06 UTC) #11
Bret
On 2016/06/22 23:58:40, sky wrote: > Does this impact how we schedule damage regions? By ...
4 years, 6 months ago (2016-06-23 00:16:55 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2090203002/20001
4 years, 6 months ago (2016-06-23 00:36:04 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/85672) mac_chromium_rel_ng on ...
4 years, 6 months ago (2016-06-23 00:49:27 UTC) #16
sky
Ok, great. On Wed, Jun 22, 2016 at 5:16 PM, <bsep@chromium.org> wrote: > On 2016/06/22 ...
4 years, 6 months ago (2016-06-23 15:23:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2090203002/40001
4 years, 6 months ago (2016-06-23 17:19:50 UTC) #20
commit-bot: I haz the power
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/220790)
4 years, 6 months ago (2016-06-23 17:37:54 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2090203002/60001
4 years, 6 months ago (2016-06-23 18:37:59 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/157598) linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 6 months ago (2016-06-23 18:52:00 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2090203002/80001
4 years, 6 months ago (2016-06-23 19:53:15 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/87530) cast_shell_android on tryserver.chromium.android (JOB_FAILED, ...
4 years, 6 months ago (2016-06-23 20:02:10 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2090203002/100001
4 years, 6 months ago (2016-06-23 20:16:08 UTC) #35
chrishtr
FYI Blink is solving the same kind of issue by snapping positions to actual device ...
4 years, 6 months ago (2016-06-23 20:33:41 UTC) #37
Bret
On 2016/06/23 20:33:41, chrishtr wrote: > FYI Blink is solving the same kind of issue ...
4 years, 6 months ago (2016-06-23 20:48:20 UTC) #38
sky
I think that would be hard when the ui code uses integer dips. -Scott On ...
4 years, 6 months ago (2016-06-23 20:57:27 UTC) #39
chrishtr
On 2016/06/23 at 20:57:27, sky wrote: > I think that would be hard when the ...
4 years, 6 months ago (2016-06-23 21:11:02 UTC) #40
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-23 21:29:09 UTC) #42
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/e11a8ea32baa62619f66c2e1104786ad861e9c05 Cr-Commit-Position: refs/heads/master@{#401726}
4 years, 6 months ago (2016-06-23 21:31:59 UTC) #44
brucedawson
4 years, 6 months ago (2016-06-23 22:23:33 UTC) #45
Message was sent while issue was closed.
On 2016/06/23 21:31:59, commit-bot: I haz the power wrote:
> Patchset 6 (id:??) landed as
> https://crrev.com/e11a8ea32baa62619f66c2e1104786ad861e9c05
> Cr-Commit-Position: refs/heads/master@{#401726}

FWIW, once https://bugs.chromium.org/p/chromium/issues/detail?id=554717 is
resolved then std::max can be used in constexpr, and then patch set 5 would
work.

Powered by Google App Engine
This is Rietveld 408576698