mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 748088 - Part 1: Add a DrawToSurface message to PLayers. r=BenWa
This commit is contained in:
parent
0fd51b287f
commit
eb79efd447
@ -214,6 +214,10 @@ parent:
|
||||
sync Update(Edit[] cset, bool isFirstPaint)
|
||||
returns (EditReply[] reply);
|
||||
|
||||
// Composite the layer tree to the given surface, and return the surface.
|
||||
sync DrawToSurface(SurfaceDescriptor surfaceIn)
|
||||
returns (SurfaceDescriptor surfaceOut);
|
||||
|
||||
// We don't need to send a sync transaction if
|
||||
// no transaction operate require a swap.
|
||||
async UpdateNoSwap(Edit[] cset, bool isFirstPaint);
|
||||
|
@ -410,6 +410,14 @@ ShadowLayersParent::RecvUpdate(const InfallibleTArray<Edit>& cset,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
ShadowLayersParent::RecvDrawToSurface(const SurfaceDescriptor& surfaceIn,
|
||||
SurfaceDescriptor* surfaceOut)
|
||||
{
|
||||
*surfaceOut = surfaceIn;
|
||||
return true;
|
||||
}
|
||||
|
||||
PLayerParent*
|
||||
ShadowLayersParent::AllocPLayer()
|
||||
{
|
||||
|
@ -48,6 +48,9 @@ protected:
|
||||
const bool& isFirstPaint,
|
||||
EditReplyArray* reply);
|
||||
|
||||
NS_OVERRIDE virtual bool RecvDrawToSurface(const SurfaceDescriptor& surfaceIn,
|
||||
SurfaceDescriptor* surfaceOut);
|
||||
|
||||
NS_OVERRIDE virtual bool RecvUpdateNoSwap(const EditArray& cset,
|
||||
const bool& isFirstPaint);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user