1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/layers/ipc/ShadowLayerUtilsD3D10.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 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 +#ifndef mozilla_layers_ShadowLayerUtilsD3D10_h 1.12 +#define mozilla_layers_ShadowLayerUtilsD3D10_h 1.13 + 1.14 +#define MOZ_HAVE_PLATFORM_SPECIFIC_LAYER_BUFFERS 1.15 + 1.16 +struct ID3D10Device; 1.17 +struct ID3D10Texture2D; 1.18 + 1.19 +namespace mozilla { 1.20 +namespace layers { 1.21 + 1.22 +class SurfaceDescriptorD3D10; 1.23 + 1.24 +/** 1.25 + * Write into |aDescr| a cross-process descriptor of |aTexture|, if 1.26 + * possible. Return true iff |aDescr| was successfully set. 1.27 + */ 1.28 +bool 1.29 +GetDescriptor(ID3D10Texture2D* aTexture, SurfaceDescriptorD3D10* aDescr); 1.30 + 1.31 +already_AddRefed<ID3D10Texture2D> 1.32 +OpenForeign(ID3D10Device* aDevice, const SurfaceDescriptorD3D10& aDescr); 1.33 + 1.34 +} // namespace layers 1.35 +} // namespace mozilla 1.36 + 1.37 +#endif // mozilla_layers_ShadowLayerUtilsD3D10_h