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

Issue 10963056: [cc] Add window decoration layers (NinePatch) (Closed)

Created:
8 years, 3 months ago by no sievers
Modified:
8 years, 1 month ago
CC:
chromium-reviews, cc-bugs_chromium.org, darin-cc_chromium.org, David Trainor- moved to gerrit, aelias_OOO_until_Jul13, piman, klobag.chromium
Visibility:
Public.

Description

[cc] Add window decoration layers (NinePatch) This adds a new layer type for window decorations. It uses small textures that get scaled non-uniformly (only along the side axes, while the corner quads are not scaled to allow for non-filtered rounded edges). The desired output size is derived from the layer bounds. The aperture specifies the transparent region inside the bitmap where the window contents are supposed to show.

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : hacky rebase for Jerome to use #

Unified diffs Side-by-side diffs Delta from patch set Stats (+680 lines, -0 lines) Patch
A cc/CCDecorationLayerImpl.h View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A cc/CCDecorationLayerImpl.cpp View 1 2 1 chunk +109 lines, -0 lines 0 comments Download
A cc/CCDecorationLayerImplTest.cpp View 1 2 1 chunk +87 lines, -0 lines 0 comments Download
A cc/DecorationLayerChromium.h View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A cc/DecorationLayerChromium.cpp View 1 2 3 1 chunk +158 lines, -0 lines 0 comments Download
cc/DecorationLayerChromiumTest.cpp View 1 2 1 chunk +140 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
A webkit/compositor_bindings/WebDecorationLayerImpl.h View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A webkit/compositor_bindings/WebDecorationLayerImpl.cpp View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
M webkit/compositor_bindings/WebLayerTest.cpp View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M webkit/compositor_bindings/compositor_bindings.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
danakj
a couple gtfo style nits for you :) https://codereview.chromium.org/10963056/diff/1/cc/CCDecorationLayerImpl.h File cc/CCDecorationLayerImpl.h (right): https://codereview.chromium.org/10963056/diff/1/cc/CCDecorationLayerImpl.h#newcode2 cc/CCDecorationLayerImpl.h:2: * ...
8 years, 3 months ago (2012-09-24 14:35:00 UTC) #1
no sievers
not for review yet, but dtrain and jerome might want to start playing with it. ...
8 years, 3 months ago (2012-09-24 14:35:26 UTC) #2
no sievers
Thanks. Or since this is a new file should I convert it to chromium style ...
8 years, 3 months ago (2012-09-24 14:37:44 UTC) #3
no sievers
Jerome, David, the way this works is that you can use setBounds() to size the ...
8 years, 3 months ago (2012-09-24 14:43:40 UTC) #4
jscholler
Thanks! Jerome On Mon, Sep 24, 2012 at 7:43 AM, <sievers@chromium.org> wrote: > Jerome, David, ...
8 years, 3 months ago (2012-09-24 14:47:37 UTC) #5
danakj
On 2012/09/24 14:37:44, Daniel Sievers wrote: > Thanks. Or since this is a new file ...
8 years, 3 months ago (2012-09-24 14:50:06 UTC) #6
no sievers
Ok, I've picked this up again as it seems like this is needed urgently now ...
8 years, 2 months ago (2012-10-11 20:12:47 UTC) #7
jamesr
Why do you need a custom layer type instead of layers for the distinct elements?
8 years, 2 months ago (2012-10-11 20:14:46 UTC) #8
enne (OOO)
I was really hoping that we could have a single decoration manager per compositor to ...
8 years, 2 months ago (2012-10-11 20:18:11 UTC) #9
no sievers
We wanted this to reduce the complexity of creating a decoration from the app as ...
8 years, 2 months ago (2012-10-11 20:19:50 UTC) #10
no sievers
Sharing would be nice, but isn't that somewhat orthogonal? I was imagining that we can ...
8 years, 2 months ago (2012-10-11 20:20:58 UTC) #11
jamesr
There are two issues: how to handle the resources and how to position the final. ...
8 years, 2 months ago (2012-10-11 20:21:37 UTC) #12
Jerome
With our current design we would easily go over a thousand layers. It needs to ...
8 years, 2 months ago (2012-10-11 20:47:07 UTC) #13
jamesr
8 years, 2 months ago (2012-10-11 21:43:58 UTC) #14
On 2012/10/11 20:12:47, Daniel Sievers wrote:
> Ok, I've picked this up again as it seems like this is needed urgently now :)
> 
> I've rebased and added some tests. Not really happy with what was necessary in
> DecorationLayerChromiumTest.cpp to test the upload logic.

I think this is pretty similar to ImageLayerChromium's LayerTextureUpdater.  You
might be able to refactor that into a common location.

> 
> Alex prefers the name NinePatch over DecorationLayer, so I'm taking
suggestions
> for names.

Powered by Google App Engine
This is Rietveld 408576698