michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * vim: sw=2 ts=8 et : michael@0: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: include LayersSurfaces; michael@0: include protocol PLayerTransaction; michael@0: include protocol PImageBridge; michael@0: include protocol PGrallocBuffer; michael@0: include "mozilla/GfxMessageUtils.h"; michael@0: michael@0: using struct mozilla::layers::FrameMetrics from "FrameMetrics.h"; michael@0: using struct mozilla::layers::FenceHandle from "mozilla/layers/FenceUtils.h"; michael@0: michael@0: namespace mozilla { michael@0: namespace layers { michael@0: michael@0: union MaybeFenceHandle { michael@0: FenceHandle; michael@0: null_t; michael@0: }; michael@0: michael@0: /** michael@0: * PTexture is the IPDL glue between a TextureClient and a TextureHost. michael@0: */ michael@0: sync protocol PTexture { michael@0: manager PImageBridge or PLayerTransaction; michael@0: michael@0: child: michael@0: async __delete__(); michael@0: michael@0: async CompositorRecycle(MaybeFenceHandle aFence); michael@0: michael@0: parent: michael@0: michael@0: async ClientRecycle(); michael@0: michael@0: /** michael@0: * Asynchronously tell the Compositor side to remove the texture. michael@0: */ michael@0: async RemoveTexture(); michael@0: michael@0: /** michael@0: * Synchronously tell the compositor side to remove the texture. michael@0: */ michael@0: sync RemoveTextureSync(); michael@0: }; michael@0: michael@0: } // layers michael@0: } // mozilla