Implement ImageBridge support for the GPU process. (bug 1287366 part 3, r=mattwoodrow,billm)

This commit is contained in:
David Anderson
2016-07-20 00:19:27 -07:00
parent 227ba95f86
commit 590cc0cad1
8 changed files with 107 additions and 18 deletions

View File

@@ -13,6 +13,7 @@
#include "mozilla/ipc/ProcessChild.h"
#include "mozilla/layers/CompositorBridgeParent.h"
#include "mozilla/layers/CompositorThread.h"
#include "mozilla/layers/ImageBridgeParent.h"
namespace mozilla {
namespace gfx {
@@ -61,6 +62,13 @@ GPUParent::RecvInitVsyncBridge(Endpoint<PVsyncBridgeParent>&& aVsyncEndpoint)
return true;
}
bool
GPUParent::RecvInitImageBridge(Endpoint<PImageBridgeParent>&& aEndpoint)
{
ImageBridgeParent::CreateForGPUProcess(Move(aEndpoint));
return true;
}
bool
GPUParent::RecvUpdatePref(const GfxPrefSetting& setting)
{
@@ -98,6 +106,12 @@ GPUParent::RecvNewContentCompositorBridge(Endpoint<PCompositorBridgeParent>&& aE
return CompositorBridgeParent::CreateForContent(Move(aEndpoint));
}
bool
GPUParent::RecvNewContentImageBridge(Endpoint<PImageBridgeParent>&& aEndpoint)
{
return ImageBridgeParent::CreateForContent(Move(aEndpoint));
}
void
GPUParent::ActorDestroy(ActorDestroyReason aWhy)
{