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: #ifndef mozilla_layers_ShadowLayerUtilsD3D10_h michael@0: #define mozilla_layers_ShadowLayerUtilsD3D10_h michael@0: michael@0: #define MOZ_HAVE_PLATFORM_SPECIFIC_LAYER_BUFFERS michael@0: michael@0: struct ID3D10Device; michael@0: struct ID3D10Texture2D; michael@0: michael@0: namespace mozilla { michael@0: namespace layers { michael@0: michael@0: class SurfaceDescriptorD3D10; michael@0: michael@0: /** michael@0: * Write into |aDescr| a cross-process descriptor of |aTexture|, if michael@0: * possible. Return true iff |aDescr| was successfully set. michael@0: */ michael@0: bool michael@0: GetDescriptor(ID3D10Texture2D* aTexture, SurfaceDescriptorD3D10* aDescr); michael@0: michael@0: already_AddRefed michael@0: OpenForeign(ID3D10Device* aDevice, const SurfaceDescriptorD3D10& aDescr); michael@0: michael@0: } // namespace layers michael@0: } // namespace mozilla michael@0: michael@0: #endif // mozilla_layers_ShadowLayerUtilsD3D10_h