mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 917416 - Make RenderFrameParent opaque to lower b2g memory usage. r=mattwoodrow
This commit is contained in:
parent
8fd9121f8c
commit
2fe52b1b3a
@ -221,6 +221,12 @@ public:
|
||||
|
||||
NS_DISPLAY_DECL_NAME("Remote", TYPE_REMOTE)
|
||||
|
||||
virtual nsRegion GetOpaqueRegion(nsDisplayListBuilder* aBuilder,
|
||||
bool* aSnap)
|
||||
{
|
||||
return GetBounds(aBuilder, aSnap);
|
||||
}
|
||||
|
||||
private:
|
||||
RenderFrameParent* mRemoteFrame;
|
||||
};
|
||||
|
@ -133,14 +133,12 @@ public:
|
||||
// nsBaseWidget methods we override
|
||||
//
|
||||
|
||||
// Documents loaded in child processes are always subdocuments of
|
||||
// other docs in an ancestor process. To ensure that the
|
||||
// backgrounds of those documents are painted like those of
|
||||
// same-process subdocuments, we force the widget here to be
|
||||
// transparent, which in turn will cause layout to use a transparent
|
||||
// backstop background color.
|
||||
// Force documents to be opaque so that we don't have to retain
|
||||
// the content behind a remote frame. This is a large memory saving
|
||||
// for HiDPI b2g devices. When we need apps to be transparent we
|
||||
// will need to provide a way for them to opt into it.
|
||||
virtual nsTransparencyMode GetTransparencyMode() MOZ_OVERRIDE
|
||||
{ return eTransparencyTransparent; }
|
||||
{ return eTransparencyOpaque; }
|
||||
|
||||
virtual LayerManager*
|
||||
GetLayerManager(PLayerTransactionChild* aShadowManager = nullptr,
|
||||
|
Loading…
Reference in New Issue
Block a user