Bug 748088 - Part 1: Add a DrawToSurface message to PLayers. r=BenWa

This commit is contained in:
Ali Juma 2012-06-01 08:42:34 -04:00
parent 0fd51b287f
commit eb79efd447
3 changed files with 15 additions and 0 deletions

View File

@ -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);

View File

@ -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()
{

View File

@ -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);