@Dana Jansens thanks for your reply the example is for setting filters to UI compositor layers.I tried setting the filters using Layer::SetFilters(const FilterOperations& filters) and Layer::SetBackgroundFilters(const FilterOperations& filters).But there was no output am i missing something?
Thanks,
Siva
Hi, Dana!Do you mean Layer::SetReplicaLayer?
> If you're trying to display content twice, you could just place that content in the tree twice.
Layer::AddChild removes a newly added child from any previous parent layer.
On Thu, Jul 3, 2014 at 10:01 AM, Alexey Baskakov <loy...@gmail.com> wrote:
Hi, Dana!Do you mean Layer::SetReplicaLayer?
> If you're trying to display content twice, you could just place that content in the tree twice.
That's one way.Layer::AddChild removes a newly added child from any previous parent layer.You could also just make two layers with the same content in them.
Hi again, Dana!
On Thursday, July 3, 2014 7:30:37 PM UTC+4, Dana Jansens wrote:On Thu, Jul 3, 2014 at 10:01 AM, Alexey Baskakov <loy...@gmail.com> wrote:
Hi, Dana!Do you mean Layer::SetReplicaLayer?
> If you're trying to display content twice, you could just place that content in the tree twice.
That's one way.Layer::AddChild removes a newly added child from any previous parent layer.You could also just make two layers with the same content in them.
So, what would be a good way to have _live_ content layer twice (two instances overlapped, transformed, scaled, with individual filters)?
It looks like Replica layer is shown always behind it's parent. (It's is the opposite for regular children layers - they are always in front of parent. In case of simple 2d translations, of course).
On Wed, Jul 9, 2014 at 4:20 AM, Alexey Baskakov <loy...@gmail.com> wrote:
Hi again, Dana!
On Thursday, July 3, 2014 7:30:37 PM UTC+4, Dana Jansens wrote:On Thu, Jul 3, 2014 at 10:01 AM, Alexey Baskakov <loy...@gmail.com> wrote:
Hi, Dana!Do you mean Layer::SetReplicaLayer?
> If you're trying to display content twice, you could just place that content in the tree twice.
That's one way.Layer::AddChild removes a newly added child from any previous parent layer.You could also just make two layers with the same content in them.
So, what would be a good way to have _live_ content layer twice (two instances overlapped, transformed, scaled, with individual filters)?
It looks like Replica layer is shown always behind it's parent. (It's is the opposite for regular children layers - they are always in front of parent. In case of simple 2d translations, of course).
Is this a problem? Can you swap the position of the layer and the replica? I think they can have different filters no?
On Wednesday, July 9, 2014 8:04:01 PM UTC+4, Dana Jansens wrote:On Wed, Jul 9, 2014 at 4:20 AM, Alexey Baskakov <loy...@gmail.com> wrote:
Hi again, Dana!
On Thursday, July 3, 2014 7:30:37 PM UTC+4, Dana Jansens wrote:On Thu, Jul 3, 2014 at 10:01 AM, Alexey Baskakov <loy...@gmail.com> wrote:
Hi, Dana!Do you mean Layer::SetReplicaLayer?
> If you're trying to display content twice, you could just place that content in the tree twice.
That's one way.Layer::AddChild removes a newly added child from any previous parent layer.You could also just make two layers with the same content in them.
So, what would be a good way to have _live_ content layer twice (two instances overlapped, transformed, scaled, with individual filters)?
It looks like Replica layer is shown always behind it's parent. (It's is the opposite for regular children layers - they are always in front of parent. In case of simple 2d translations, of course).
Is this a problem? Can you swap the position of the layer and the replica? I think they can have different filters no?
Yes, that's a bit problematic. What do you mean by swapping the position? The only machinery I know is "children stacking order" (and z-order, probbaly. But I don't want to dive into 3d for now).
Layer::SetReplicaLayer is unidirectional relationship (as I understand), I can't swap a parent and a child in this case.
So, I don't understand something.
On Thu, Jul 10, 2014 at 3:21 AM, Alexey Baskakov <loy...@gmail.com> wrote:
On Wednesday, July 9, 2014 8:04:01 PM UTC+4, Dana Jansens wrote:On Wed, Jul 9, 2014 at 4:20 AM, Alexey Baskakov <loy...@gmail.com> wrote:
Hi again, Dana!
On Thursday, July 3, 2014 7:30:37 PM UTC+4, Dana Jansens wrote:On Thu, Jul 3, 2014 at 10:01 AM, Alexey Baskakov <loy...@gmail.com> wrote:
Hi, Dana!Do you mean Layer::SetReplicaLayer?
> If you're trying to display content twice, you could just place that content in the tree twice.
That's one way.Layer::AddChild removes a newly added child from any previous parent layer.You could also just make two layers with the same content in them.
So, what would be a good way to have _live_ content layer twice (two instances overlapped, transformed, scaled, with individual filters)?
It looks like Replica layer is shown always behind it's parent. (It's is the opposite for regular children layers - they are always in front of parent. In case of simple 2d translations, of course).
Is this a problem? Can you swap the position of the layer and the replica? I think they can have different filters no?
Yes, that's a bit problematic. What do you mean by swapping the position? The only machinery I know is "children stacking order" (and z-order, probbaly. But I don't want to dive into 3d for now).
Layer::SetReplicaLayer is unidirectional relationship (as I understand), I can't swap a parent and a child in this case.
So, I don't understand something.It sounded like the Replica being behind its parent was a problem. If the parent is at 10,10 and the replica at 20,20, but you want the 20,20 to appear above, you could put the parent at 20,20 and the replica at 10,10.It seems simple so probably I don't understand really what problem you're facing.
The next question: How to freeze it at just one frame or convert it into TextureLayer? Say, I don't need sequence of frames.
For DRL you can just make another DRL and give it the same FrameProvider. See DelegatedFrameHost::OnLayerRecreated. https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/compositor/delegated_frame_host.cc&sq=package:chromium&rcl=1404978341&l=840
Thanks! I saw the idea in the CL for Android readback (second hidden DRL is used there)Technically, it works. However, there is no ui::Layers on Android.Moreover, RenderWidgetHostViewAndroid::frame_provider_ is private.Can we introduce an accessor OR implement something like RenderWidgetHostViewAndroid::CreateDelegatedRendererLayerForFrameProvider() ?That's a question for the android people. +aelias