1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/layers/ipc/PTexture.ipdl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,52 @@ 1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.5 + * vim: sw=2 ts=8 et : 1.6 + */ 1.7 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.10 + 1.11 +include LayersSurfaces; 1.12 +include protocol PLayerTransaction; 1.13 +include protocol PImageBridge; 1.14 +include protocol PGrallocBuffer; 1.15 +include "mozilla/GfxMessageUtils.h"; 1.16 + 1.17 +using struct mozilla::layers::FrameMetrics from "FrameMetrics.h"; 1.18 +using struct mozilla::layers::FenceHandle from "mozilla/layers/FenceUtils.h"; 1.19 + 1.20 +namespace mozilla { 1.21 +namespace layers { 1.22 + 1.23 +union MaybeFenceHandle { 1.24 + FenceHandle; 1.25 + null_t; 1.26 +}; 1.27 + 1.28 +/** 1.29 + * PTexture is the IPDL glue between a TextureClient and a TextureHost. 1.30 + */ 1.31 +sync protocol PTexture { 1.32 + manager PImageBridge or PLayerTransaction; 1.33 + 1.34 +child: 1.35 + async __delete__(); 1.36 + 1.37 + async CompositorRecycle(MaybeFenceHandle aFence); 1.38 + 1.39 +parent: 1.40 + 1.41 + async ClientRecycle(); 1.42 + 1.43 + /** 1.44 + * Asynchronously tell the Compositor side to remove the texture. 1.45 + */ 1.46 + async RemoveTexture(); 1.47 + 1.48 + /** 1.49 + * Synchronously tell the compositor side to remove the texture. 1.50 + */ 1.51 + sync RemoveTextureSync(); 1.52 +}; 1.53 + 1.54 +} // layers 1.55 +} // mozilla