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

Issue 499503002: Respect window transparency when applying window shape. (Closed)

Created:
6 years, 4 months ago by garykac
Modified:
6 years, 3 months ago
Reviewers:
danakj, Wez
CC:
chromium-reviews, Ian Vollick, sievers+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, cc-bugs_chromium.org
Project:
chromium
Visibility:
Public.

Description

Respect window transparency when applying window shape. Currently, the code clamps alpha up to to 100% within the window shape and down to 0% outside the shape. This means that windows with shape *and* transparency enabled effectively lose their transparency. This change makes it so that the alpha is clamped up to 0% within the window shape, which preserves the window's transparency. BUG=405751 Committed: https://crrev.com/eba92949d768e9905fd45e5b10bef8f9f1d21d08 Cr-Commit-Position: refs/heads/master@{#293433}

Patch Set 1 #

Patch Set 2 : Unittest #

Patch Set 3 : Add Aura check #

Patch Set 4 : sync/merge #

Patch Set 5 : Ignore edge; Check for GPU #

Patch Set 6 : Restrict test size; Add CrOS check #

Total comments: 12

Patch Set 7 : Remove AeroGlass check (test) #

Patch Set 8 : Re-add AeroGlass checks for Windows #

Total comments: 11

Patch Set 9 : Remove shape to test transparency on bots #

Patch Set 10 : Remove unused var #

Patch Set 11 : Add DrawAlphaBlendedPixels test to demo transp bug #

Patch Set 12 : Fix unused var on CrOS #

Patch Set 13 : Add FillsBoundsOpaquely=false test #

Patch Set 14 : Set FillsBoundsOpaquely on correct layer #

Patch Set 15 : Set FillBoundsOpaquely to false #

Total comments: 1

Patch Set 16 : Swap params for ExpectRgba #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -13 lines) Patch
M ui/compositor/layer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/layer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +95 lines, -12 lines 0 comments Download

Messages

Total messages: 39 (1 generated)
garykac
6 years, 4 months ago (2014-08-21 23:06:04 UTC) #1
danakj
Doesn't this just completely disable the whole thing? I thought the requirements were that "things ...
6 years, 4 months ago (2014-08-21 23:13:25 UTC) #2
danakj
Also, tests?
6 years, 4 months ago (2014-08-21 23:13:39 UTC) #3
garykac
On 2014/08/21 23:13:25, danakj wrote: > Doesn't this just completely disable the whole thing? I ...
6 years, 4 months ago (2014-08-22 04:07:03 UTC) #4
garykac
On 2014/08/21 23:13:39, danakj wrote: > Also, tests? added.
6 years, 4 months ago (2014-08-22 04:07:15 UTC) #5
danakj
One test is failing http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/9305/steps/compositor_unittests%20%28with%20patch%29/logs/DrawAlphaThresholdFilterPixels I don't understand why you have all the platform #ifdefs ...
6 years, 4 months ago (2014-08-25 17:17:38 UTC) #6
garykac
> One test is failing > http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_... That's because this test succeeds when run locally, ...
6 years, 3 months ago (2014-08-26 01:44:38 UTC) #7
garykac
garykac@chromium.org changed reviewers: + wez@chromium.org
6 years, 3 months ago (2014-08-26 01:45:01 UTC) #8
garykac
+wez, FYI
6 years, 3 months ago (2014-08-26 01:45:02 UTC) #9
Wez
Thanks Gary! Let's get this fix landed ASAP. Where does the new DEPS dependency on ...
6 years, 3 months ago (2014-08-26 01:53:39 UTC) #10
danakj
On Mon, Aug 25, 2014 at 9:44 PM, <garykac@chromium.org> wrote: > One test is failing ...
6 years, 3 months ago (2014-08-26 01:59:42 UTC) #11
danakj
On Mon, Aug 25, 2014 at 9:59 PM, Dana Jansens <danakj@chromium.org> wrote: > On Mon, ...
6 years, 3 months ago (2014-08-26 02:19:01 UTC) #12
Wez
Dana, Gary, can we get this fix landed now and follow-up with a resolution to ...
6 years, 3 months ago (2014-08-28 20:53:10 UTC) #13
danakj
On Thu, Aug 28, 2014 at 4:53 PM, <wez@chromium.org> wrote: > Dana, Gary, can we ...
6 years, 3 months ago (2014-08-28 20:55:19 UTC) #14
Wez
Dana, the original one-line fix resolves a well-understood regression, which needs merging back to M38. ...
6 years, 3 months ago (2014-08-28 20:59:49 UTC) #15
danakj
On Thu, Aug 28, 2014 at 4:59 PM, Wez <wez@chromium.org> wrote: > Dana, the original ...
6 years, 3 months ago (2014-08-28 21:43:37 UTC) #16
Wez
The exceptions in the new tests that Gary is adding are identical to the exceptions ...
6 years, 3 months ago (2014-08-28 22:16:04 UTC) #17
danakj
On Thu, Aug 28, 2014 at 6:16 PM, Wez <wez@chromium.org> wrote: > The exceptions in ...
6 years, 3 months ago (2014-08-28 22:19:13 UTC) #18
Wez
Sorry; some miscommunication at this end - IIUC that same test without the SetAlphaShape call ...
6 years, 3 months ago (2014-08-28 22:30:04 UTC) #19
garykac
On 2014/08/28 22:19:13, danakj wrote: > On Thu, Aug 28, 2014 at 6:16 PM, Wez ...
6 years, 3 months ago (2014-08-29 21:05:38 UTC) #20
danakj
On 2014/08/29 21:05:38, garykac wrote: > On 2014/08/28 22:19:13, danakj wrote: > > On Thu, ...
6 years, 3 months ago (2014-08-29 21:11:49 UTC) #21
Wez
On 2014/08/29 21:11:49, danakj wrote: > On 2014/08/29 21:05:38, garykac wrote: > > On 2014/08/28 ...
6 years, 3 months ago (2014-08-29 21:28:42 UTC) #22
Wez
Gary, can we restructure the shape test to use surface translucency rather than per-pixel? If ...
6 years, 3 months ago (2014-08-29 21:42:11 UTC) #23
danakj
On Fri, Aug 29, 2014 at 5:42 PM, <wez@chromium.org> wrote: > Gary, can we restructure ...
6 years, 3 months ago (2014-08-29 21:56:48 UTC) #24
Wez
IIUC you're saying that the shape filter will be applied *before* surface-wide opacity takes effect? ...
6 years, 3 months ago (2014-08-29 22:04:11 UTC) #25
danakj
On Fri, Aug 29, 2014 at 6:04 PM, Wez <wez@chromium.org> wrote: > IIUC you're saying ...
6 years, 3 months ago (2014-08-29 22:10:29 UTC) #26
garykac
On 2014/08/29 22:10:29, danakj wrote: > On Fri, Aug 29, 2014 at 6:04 PM, Wez ...
6 years, 3 months ago (2014-08-29 22:34:17 UTC) #27
danakj
On Fri, Aug 29, 2014 at 6:34 PM, <garykac@chromium.org> wrote: > On 2014/08/29 22:10:29, danakj ...
6 years, 3 months ago (2014-08-29 22:37:52 UTC) #28
garykac
On 2014/08/29 22:37:52, danakj wrote: > On Fri, Aug 29, 2014 at 6:34 PM, <mailto:garykac@chromium.org> ...
6 years, 3 months ago (2014-08-29 22:53:37 UTC) #29
danakj
On Fri, Aug 29, 2014 at 6:53 PM, <garykac@chromium.org> wrote: > On 2014/08/29 22:37:52, danakj ...
6 years, 3 months ago (2014-08-29 22:57:28 UTC) #30
garykac
ah... good point. Do you have any other suggestions? I can't think of anything better ...
6 years, 3 months ago (2014-08-29 23:05:11 UTC) #31
danakj
On Fri, Aug 29, 2014 at 7:05 PM, Gary Kacmarcik (Кошмарчик) < garykac@chromium.org> wrote: > ...
6 years, 3 months ago (2014-08-29 23:08:54 UTC) #32
Wez
I thought we'd confirmed that the endianness issue affects pixel-level translucency regardless of whether this ...
6 years, 3 months ago (2014-08-29 23:13:27 UTC) #33
garykac
There are 2 tests: one that simply draws alpha pixels, and another that draws them ...
6 years, 3 months ago (2014-09-02 19:27:07 UTC) #34
danakj
LGTM https://codereview.chromium.org/499503002/diff/280001/ui/compositor/layer_unittest.cc File ui/compositor/layer_unittest.cc (right): https://codereview.chromium.org/499503002/diff/280001/ui/compositor/layer_unittest.cc#newcode850 ui/compositor/layer_unittest.cc:850: void ExpectRgba(int x, int y, SkColor actual_color, SkColor ...
6 years, 3 months ago (2014-09-03 19:39:05 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/garykac@chromium.org/499503002/300001
6 years, 3 months ago (2014-09-04 23:09:48 UTC) #37
commit-bot: I haz the power
Committed patchset #16 (id:300001) as 14b6edac18f89538d7a4675968e08517d1f924b6
6 years, 3 months ago (2014-09-05 04:27:41 UTC) #38
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:36:38 UTC) #39
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/eba92949d768e9905fd45e5b10bef8f9f1d21d08
Cr-Commit-Position: refs/heads/master@{#293433}

Powered by Google App Engine
This is Rietveld 408576698