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

Issue 2899133004: Reduce overdraw on bookmark bar (Closed)

Created:
3 years, 6 months ago by yiyix
Modified:
3 years, 6 months ago
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce overdraw on bookmark bar The bookmark bar always experience 2 layers of overdraw because the layers are marked as non-opaque. After research, I noticed that it is always opaque for both attached and detached bookmark bar with or without theme, so the top layer is now marked as opaque. The bookmark bar and the toolbar is overlapped for the toolbar to control the show/hide animation of the separator between them. This cl also updates the location and the height of bookmark bar to avoid the overlapping. BUG=725956 Review-Url: https://codereview.chromium.org/2899133004 Cr-Commit-Position: refs/heads/master@{#476569} Committed: https://chromium.googlesource.com/chromium/src/+/7073ae5bc6af913c649500e015210992f9c7111a

Patch Set 1 : Reduce overdraw on bookmark bar #

Total comments: 2

Patch Set 2 : new approach #

Total comments: 3

Patch Set 3 : Update bookmark bar location and size #

Total comments: 2

Patch Set 4 : address comments #

Total comments: 2

Patch Set 5 : revert change in browserview #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -31 lines) Patch
M chrome/browser/ui/bookmarks/bookmark_bar_constants.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 3 2 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_unittest.cc View 1 2 1 chunk +3 lines, -10 lines 0 comments Download

Messages

Total messages: 63 (40 generated)
yiyix
@sky, estade, could you please review this patch? Thank you.
3 years, 6 months ago (2017-05-24 17:24:01 UTC) #11
Evan Stade
https://codereview.chromium.org/2899133004/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): https://codereview.chromium.org/2899133004/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode662 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc:662: DestroyLayer(); I am surprised this works. You're destroying the ...
3 years, 6 months ago (2017-05-24 17:34:31 UTC) #13
sky
https://codereview.chromium.org/2899133004/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): https://codereview.chromium.org/2899133004/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode662 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc:662: DestroyLayer(); On 2017/05/24 17:34:30, Evan Stade wrote: > I ...
3 years, 6 months ago (2017-05-24 21:32:05 UTC) #14
yiyix
On 2017/05/24 21:32:05, sky wrote: > https://codereview.chromium.org/2899133004/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc > File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): > > https://codereview.chromium.org/2899133004/diff/40001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode662 > ...
3 years, 6 months ago (2017-05-26 02:57:53 UTC) #17
sky
https://codereview.chromium.org/2899133004/diff/100001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): https://codereview.chromium.org/2899133004/diff/100001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode608 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc:608: layer()->SetFillsBoundsOpaquely(true); I'm surprised this would work. Don't we need ...
3 years, 6 months ago (2017-05-26 13:40:53 UTC) #18
Evan Stade
https://codereview.chromium.org/2899133004/diff/100001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/2899133004/diff/100001/chrome/browser/ui/views/frame/browser_view.cc#newcode226 chrome/browser/ui/views/frame/browser_view.cc:226: view->GetLocalBounds(), false); Isn't this separator already being drawn by ...
3 years, 6 months ago (2017-05-26 15:03:41 UTC) #19
yiyix
@sky, please let me know if you have other concerns. https://codereview.chromium.org/2899133004/diff/100001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): https://codereview.chromium.org/2899133004/diff/100001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode608 ...
3 years, 6 months ago (2017-05-26 18:30:33 UTC) #20
yiyix
On 2017/05/26 15:03:41, Evan Stade wrote: > https://codereview.chromium.org/2899133004/diff/100001/chrome/browser/ui/views/frame/browser_view.cc > File chrome/browser/ui/views/frame/browser_view.cc (right): > > https://codereview.chromium.org/2899133004/diff/100001/chrome/browser/ui/views/frame/browser_view.cc#newcode226 ...
3 years, 6 months ago (2017-05-26 18:55:55 UTC) #21
yiyix
On 2017/05/26 18:30:33, yiyix wrote: > @sky, please let me know if you have other ...
3 years, 6 months ago (2017-05-26 20:12:01 UTC) #22
yiyix
@sky and @estade, could you please review this new patch?
3 years, 6 months ago (2017-05-30 20:57:01 UTC) #42
Evan Stade
lgtm but I'd feel more comfortable if pkasting had a look at it as well. ...
3 years, 6 months ago (2017-05-30 21:39:33 UTC) #44
yiyix
@sky and @pkasting: could you please review this patch? Thank you. https://codereview.chromium.org/2899133004/diff/180001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): ...
3 years, 6 months ago (2017-05-30 22:20:50 UTC) #45
sky
I defer to Peter on this, who is an owner.
3 years, 6 months ago (2017-05-30 23:20:27 UTC) #46
Peter Kasting
I'm not seeing anywhere that creates/destroys layers as the CL description implies. Is that comment ...
3 years, 6 months ago (2017-05-31 02:16:03 UTC) #47
yiyix
On 2017/05/31 02:16:03, Peter Kasting wrote: > I'm not seeing anywhere that creates/destroys layers as ...
3 years, 6 months ago (2017-05-31 15:32:58 UTC) #48
Peter Kasting
Small request: if possible, reply inline at the place where the question was asked, it ...
3 years, 6 months ago (2017-06-01 03:52:54 UTC) #52
yiyix
https://codereview.chromium.org/2899133004/diff/200001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (left): https://codereview.chromium.org/2899133004/diff/200001/chrome/browser/ui/views/frame/browser_view.cc#oldcode516 chrome/browser/ui/views/frame/browser_view.cc:516: toolbar_bounds.Inset(-views::NonClientFrameView::kClientEdgeThickness, 0); On 2017/05/31 02:16:03, Peter Kasting wrote: > ...
3 years, 6 months ago (2017-06-01 21:13:55 UTC) #53
Peter Kasting
LGTM. I totally understand why this sort of thing is confusing, and FWIW, I'm not ...
3 years, 6 months ago (2017-06-01 22:22:33 UTC) #54
Evan Stade
On 2017/06/01 22:22:33, Peter Kasting wrote: > LGTM. > > I totally understand why this ...
3 years, 6 months ago (2017-06-01 23:22:56 UTC) #55
Peter Kasting
On 2017/06/01 23:22:56, Evan Stade wrote: > On 2017/06/01 22:22:33, Peter Kasting wrote: > > ...
3 years, 6 months ago (2017-06-01 23:29:46 UTC) #56
Evan Stade
On 2017/06/01 23:29:46, Peter Kasting wrote: > On 2017/06/01 23:22:56, Evan Stade wrote: > > ...
3 years, 6 months ago (2017-06-01 23:41:45 UTC) #57
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/2899133004/220001
3 years, 6 months ago (2017-06-02 01:46:31 UTC) #60
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 04:46:30 UTC) #63
Message was sent while issue was closed.
Committed patchset #5 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/7073ae5bc6af913c649500e01521...

Powered by Google App Engine
This is Rietveld 408576698