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

Issue 2707403004: Unify background color gutters. (Closed)

Created:
3 years, 10 months ago by aelias_OOO_until_Jul13
Modified:
3 years, 9 months ago
Reviewers:
Changwan Ryu, boliu
CC:
chromium-reviews, darin-cc_chromium.org, jam, nona+watch_chromium.org, shuchen+watch_chromium.org, James Su, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unify background color gutters. There were 3 different mechanisms used for showing background color around incorrectly sized content on the Android browser process: A) setting CC root background color from StaticTabSceneLayer, B) padding SolidColorLayers in tab_layer.cc for the phone tab switcher C) a full-sized SolidColorLayer in DelegatedFrameHostAndroid. In http://crrev.com/2566753004 I disrupted this and introduced some over- and under-padding bugs (and I noticed a preexisting one). This patch fixes them by: - Eliminating mechanism C, which is particularly redundant and inefficient. - Introducing a new method ContentLayer::ComputeSize() which is a way of communicating with the TabLayer padding system that's more explicit than the layer bounds setting that existed in the past. It pulls in the surface size information that mechanism C covered. - Delegating the background color getter on the tablet TabStripSceneLayer. Mechanism B only had the correct color on phone, not tablet, because the StaticTabSceneLayer is hidden one level deep. Also do a bit of further cleanup of ContentLayer. BUG=692490 Review-Url: https://codereview.chromium.org/2707403004 Cr-Commit-Position: refs/heads/master@{#453316} Committed: https://chromium.googlesource.com/chromium/src/+/f0c242bac6c0a6cf422b637b6224da3d8ac5eb4c

Patch Set 1 #

Patch Set 2 : Remove debug logging #

Total comments: 2

Patch Set 3 : Rename to GetDrawsContentLeaf #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -104 lines) Patch
M chrome/browser/android/compositor/layer/content_layer.h View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/android/compositor/layer/content_layer.cc View 1 2 4 chunks +42 lines, -27 lines 0 comments Download
M chrome/browser/android/compositor/layer/tab_layer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/compositor/scene_layer/tab_strip_scene_layer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/android/compositor/scene_layer/tab_strip_scene_layer.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/android/compositor/tab_content_manager.h View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/android/compositor/tab_content_manager.cc View 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 3 chunks +2 lines, -8 lines 0 comments Download
M ui/android/delegated_frame_host_android.h View 5 chunks +0 lines, -12 lines 0 comments Download
M ui/android/delegated_frame_host_android.cc View 7 chunks +1 line, -49 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
aelias_OOO_until_Jul13
PTAL, changwan@ for chrome/browser/android/compositor/ boliu@ for deletion in ui/android/
3 years, 10 months ago (2017-02-24 05:37:27 UTC) #8
boliu
content/ui lgtm for only removing code :)
3 years, 9 months ago (2017-02-24 16:04:46 UTC) #11
Changwan Ryu
lgtm w/ nits thanks for the refactoring! https://codereview.chromium.org/2707403004/diff/20001/chrome/browser/android/compositor/layer/content_layer.cc File chrome/browser/android/compositor/layer/content_layer.cc (right): https://codereview.chromium.org/2707403004/diff/20001/chrome/browser/android/compositor/layer/content_layer.cc#newcode36 chrome/browser/android/compositor/layer/content_layer.cc:36: static cc::Layer* ...
3 years, 9 months ago (2017-02-27 14:28:37 UTC) #12
aelias_OOO_until_Jul13
https://codereview.chromium.org/2707403004/diff/20001/chrome/browser/android/compositor/layer/content_layer.cc File chrome/browser/android/compositor/layer/content_layer.cc (right): https://codereview.chromium.org/2707403004/diff/20001/chrome/browser/android/compositor/layer/content_layer.cc#newcode36 chrome/browser/android/compositor/layer/content_layer.cc:36: static cc::Layer* DrawContentsLeaf(scoped_refptr<cc::Layer> layer) { On 2017/02/27 at 14:28:37, ...
3 years, 9 months ago (2017-02-27 19:33:46 UTC) #13
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/2707403004/60001
3 years, 9 months ago (2017-02-27 19:34:31 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 20:18:54 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/f0c242bac6c0a6cf422b637b6224...

Powered by Google App Engine
This is Rietveld 408576698