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

Issue 2908073003: Ensure that mask layer is of the same size as the owning layer. (Closed)

Created:
3 years, 6 months ago by sunxd
Modified:
3 years, 6 months ago
CC:
blink-layers+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-reviews, dshwang, drott+blinkwatch_chromium.org, krit, fmalita+watch_chromium.org, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure that mask layer is of the same size as the owning layer. We do not support applying a mask layer of different size to the owning layer, this CL adds DCHECKs to prevent that situation. BUG=567296 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2908073003 Cr-Commit-Position: refs/heads/master@{#479502} Committed: https://chromium.googlesource.com/chromium/src/+/0fe1c3b9d8ebf6654405c5aeb116eabe9728aa1e

Patch Set 1 #

Patch Set 2 : Do not check mask size in cc::Layer. #

Patch Set 3 : Check mask size at commit. #

Patch Set 4 : Experiment with ash_unittests-mus #

Patch Set 5 : Force updating mask layer size in TrayBubbleView::SizeToContents #

Patch Set 6 : Compiling failure #

Total comments: 6

Patch Set 7 : nit #

Patch Set 8 : clean up my mistake #

Total comments: 2

Patch Set 9 : style change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -167 lines) Patch
M cc/layers/layer.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/layer_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
D cc/test/data/mask_of_larger_layer.png View Binary file 0 comments Download
M cc/trees/layer_tree_host_pixeltest_masks.cc View 1 2 3 1 chunk +0 lines, -35 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -129 lines 0 comments Download
M chrome/browser/ui/views/permission_bubble/permission_prompt_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M ui/views/bubble/bubble_dialog_delegate.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/views/bubble/tray_bubble_view.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 71 (42 generated)
sunxd
PTAL. Per discussion in https://codereview.chromium.org/2859483006/diff/100001/cc/layers/layer.cc#newcode429, I made a new patch adding DCHECK to SetMaskLayer. I ...
3 years, 6 months ago (2017-05-29 20:09:36 UTC) #6
enne (OOO)
lgtm
3 years, 6 months ago (2017-05-29 22:30:50 UTC) #9
trchen
The DCHECK will trigger because mask layers are attached immediately when created, before its geometry ...
3 years, 6 months ago (2017-05-30 23:43:29 UTC) #10
sunxd
PTAL. I moved the DCHECK to cc::Layer::PushPropertiesTo.
3 years, 6 months ago (2017-05-31 21:56:20 UTC) #15
sunxd
PTAL. I moved the DCHECK to cc::Layer::PushPropertiesTo.
3 years, 6 months ago (2017-05-31 21:56:20 UTC) #16
sunxd
On 2017/05/31 21:56:20, sunxd wrote: > PTAL. > > I moved the DCHECK to cc::Layer::PushPropertiesTo. ...
3 years, 6 months ago (2017-06-06 17:48:46 UTC) #17
trchen
lgtm lgtm. Sorry for the delay!
3 years, 6 months ago (2017-06-06 20:45:07 UTC) #19
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/2908073003/40001
3 years, 6 months ago (2017-06-06 20:45:24 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/401090)
3 years, 6 months ago (2017-06-06 21:51:54 UTC) #23
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/2908073003/40001
3 years, 6 months ago (2017-06-07 14:12:10 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/401752)
3 years, 6 months ago (2017-06-07 15:14:04 UTC) #27
sunxd
Hi jamescook@, I have met a problem with ash_unittests-mus.SystemTrayTest: in cc we should not support ...
3 years, 6 months ago (2017-06-08 16:04:15 UTC) #29
James Cook
sky, do you have any insight here why this is mash-only? tdanderson, could you take ...
3 years, 6 months ago (2017-06-08 17:45:44 UTC) #31
tdanderson
+bruthig@, as he is a better person to ask about the ink drop. Ben, please ...
3 years, 6 months ago (2017-06-08 18:16:48 UTC) #33
sky
On 2017/06/08 17:45:44, James Cook wrote: > sky, do you have any insight here why ...
3 years, 6 months ago (2017-06-08 21:21:50 UTC) #35
bruthig
On 2017/06/08 17:45:44, James Cook wrote: > sky, do you have any insight here why ...
3 years, 6 months ago (2017-06-09 15:49:09 UTC) #36
sky
On 2017/06/09 15:49:09, bruthig wrote: > On 2017/06/08 17:45:44, James Cook wrote: > > sky, ...
3 years, 6 months ago (2017-06-09 17:23:20 UTC) #37
sunxd
On 2017/06/09 17:23:20, sky OOO wrote: > On 2017/06/09 15:49:09, bruthig wrote: > > On ...
3 years, 6 months ago (2017-06-13 14:33:13 UTC) #38
James Cook
On 2017/06/13 14:33:13, sunxd wrote: > On 2017/06/09 17:23:20, sky OOO wrote: > > On ...
3 years, 6 months ago (2017-06-13 15:14:56 UTC) #39
sunxd
PTAL. I attempt to fix this issue, but not sure about whether it's a good ...
3 years, 6 months ago (2017-06-13 20:29:29 UTC) #48
James Cook
ui/views/bubble lgtm with nits, but you'll still need an owner for that directory https://codereview.chromium.org/2908073003/diff/100001/ui/views/bubble/tray_bubble_view.cc File ...
3 years, 6 months ago (2017-06-13 20:43:46 UTC) #49
sunxd
Thanks James. Hi stevenjb@, Can you take a look ui/views/bubble/tray_bubble_view.* changes please? Hi thankis@, Can ...
3 years, 6 months ago (2017-06-13 22:13:47 UTC) #52
sunxd
On 2017/06/13 22:13:47, sunxd wrote: > Thanks James. > > Hi stevenjb@, > > Can ...
3 years, 6 months ago (2017-06-14 17:38:28 UTC) #61
Nico
lgtm
3 years, 6 months ago (2017-06-14 17:50:38 UTC) #62
stevenjb
https://codereview.chromium.org/2908073003/diff/140001/chrome/browser/ui/views/permission_bubble/permission_prompt_impl.cc File chrome/browser/ui/views/permission_bubble/permission_prompt_impl.cc (right): https://codereview.chromium.org/2908073003/diff/140001/chrome/browser/ui/views/permission_bubble/permission_prompt_impl.cc#newcode58 chrome/browser/ui/views/permission_bubble/permission_prompt_impl.cc:58: void SizeToContents() override; Assuming this overrides a BubbleDialogDelegateView method, ...
3 years, 6 months ago (2017-06-14 17:58:59 UTC) #63
sunxd
PTAL. https://codereview.chromium.org/2908073003/diff/140001/chrome/browser/ui/views/permission_bubble/permission_prompt_impl.cc File chrome/browser/ui/views/permission_bubble/permission_prompt_impl.cc (right): https://codereview.chromium.org/2908073003/diff/140001/chrome/browser/ui/views/permission_bubble/permission_prompt_impl.cc#newcode58 chrome/browser/ui/views/permission_bubble/permission_prompt_impl.cc:58: void SizeToContents() override; On 2017/06/14 17:58:58, stevenjb wrote: ...
3 years, 6 months ago (2017-06-14 18:19:57 UTC) #64
stevenjb
lgtm
3 years, 6 months ago (2017-06-14 18:33:48 UTC) #65
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/2908073003/160001
3 years, 6 months ago (2017-06-14 18:41:12 UTC) #68
commit-bot: I haz the power
3 years, 6 months ago (2017-06-14 21:02:53 UTC) #71
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/0fe1c3b9d8ebf6654405c5aeb116...

Powered by Google App Engine
This is Rietveld 408576698