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

Issue 2083083004: cc: nine patch: add occlusion support (Closed)

Created:
4 years, 6 months ago by llandwerlin-old
Modified:
4 years, 4 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, jbauman+watch_chromium.org, kalyank, oshima, piman+watch_chromium.org, sadrul, sievers+watch_chromium.org, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: nine patch: add occlusion support Reland of https://codereview.chromium.org/1983803003 with fix for hidpi screens When using a NinePatchLayer to draw shadows on windows on ChromeOS part of patches which are completely transparent are drawn on top of the window. This prevents for example videos to be promoted into layers. This patch introduce an optional property on the NinePatchLayer : layer_occlusion. When this property is set, we can use it to compute 12 patches to paint the shadow rather than 8 (center omitted). This prevents drawing on the window's content completely and allows layer promotion algorithms to promote the windows's content as layer if possible (in particular with videos). BUG=603866 TEST=cc_unittests --gtest_filter=NinePatchLayer* CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/258c7d3e78c8f4b2b96c5ade9cddb2d0b1cbfdca Cr-Commit-Position: refs/heads/master@{#408084}

Patch Set 1 : previous patch #

Patch Set 2 : Fix for hidpi screens #

Total comments: 2

Patch Set 3 : Use gfx::RectF #

Patch Set 4 : Rebase on ToT before commit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+538 lines, -316 lines) Patch
M ash/mus/shadow.cc View 1 2 2 chunks +19 lines, -3 lines 0 comments Download
M cc/layers/nine_patch_layer.h View 2 chunks +9 lines, -0 lines 0 comments Download
M cc/layers/nine_patch_layer.cc View 2 chunks +10 lines, -2 lines 0 comments Download
M cc/layers/nine_patch_layer_impl.h View 1 2 3 chunks +51 lines, -15 lines 0 comments Download
M cc/layers/nine_patch_layer_impl.cc View 1 2 6 chunks +253 lines, -238 lines 0 comments Download
M cc/layers/nine_patch_layer_impl_unittest.cc View 1 2 3 13 chunks +166 lines, -53 lines 0 comments Download
M ui/compositor/layer.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/compositor/layer.cc View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M ui/wm/core/shadow.cc View 1 2 chunks +19 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (13 generated)
llandwerlin-old
ajuma@chromium.org: Could you review the changes in cc/? sky@chromium.org: Could you review the changes in ...
4 years, 6 months ago (2016-06-23 12:24:31 UTC) #3
llandwerlin-old
cc oshima@ would reviewed a previous version of this CL (and subsequent fix). I have ...
4 years, 6 months ago (2016-06-23 12:28:50 UTC) #4
ajuma
+aelias, who's a better reviewer for this since he reviewed the previous version of it. ...
4 years, 6 months ago (2016-06-23 18:23:56 UTC) #7
aelias_OOO_until_Jul13
On 2016/06/23 at 18:23:56, ajuma wrote: > +aelias, who's a better reviewer for this since ...
4 years, 6 months ago (2016-06-23 18:28:09 UTC) #8
llandwerlin-old
On 2016/06/23 18:28:09, aelias wrote: > On 2016/06/23 at 18:23:56, ajuma wrote: > > +aelias, ...
4 years, 5 months ago (2016-06-24 12:18:48 UTC) #10
aelias_OOO_until_Jul13
https://codereview.chromium.org/2083083004/diff/40001/cc/layers/nine_patch_layer_impl.cc File cc/layers/nine_patch_layer_impl.cc (right): https://codereview.chromium.org/2083083004/diff/40001/cc/layers/nine_patch_layer_impl.cc#newcode195 cc/layers/nine_patch_layer_impl.cc:195: border_.x() == 0 ? 0 : (layer_occlusion_.x() * image_aperture_.x() ...
4 years, 5 months ago (2016-06-28 00:20:45 UTC) #11
llandwerlin-old
Sorry for the delay, here is a new version using gfx::RectF. https://codereview.chromium.org/2083083004/diff/40001/cc/layers/nine_patch_layer_impl.cc File cc/layers/nine_patch_layer_impl.cc (right): ...
4 years, 5 months ago (2016-07-04 14:13:27 UTC) #12
aelias_OOO_until_Jul13
OK, lgtm.
4 years, 5 months ago (2016-07-06 23:41:29 UTC) #13
llandwerlin-old
On 2016/07/06 23:41:29, aelias_OOO_until_July_25 wrote: > OK, lgtm. sky@: ping?
4 years, 4 months ago (2016-07-25 16:23:29 UTC) #14
sky
LGTM
4 years, 4 months ago (2016-07-25 19:11:53 UTC) #15
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 4 months ago (2016-07-27 08:56:52 UTC) #18
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/2083083004/80001
4 years, 4 months ago (2016-07-27 09:51:50 UTC) #23
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 4 months ago (2016-07-27 09:51:52 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 4 months ago (2016-07-27 09:55:45 UTC) #26
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 09:57:35 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/258c7d3e78c8f4b2b96c5ade9cddb2d0b1cbfdca
Cr-Commit-Position: refs/heads/master@{#408084}

Powered by Google App Engine
This is Rietveld 408576698