michael@0: /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- 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 GFX_CONTAINERLAYERD3D9_H michael@0: #define GFX_CONTAINERLAYERD3D9_H michael@0: michael@0: #include "Layers.h" michael@0: #include "LayerManagerD3D9.h" michael@0: michael@0: namespace mozilla { michael@0: namespace layers { michael@0: michael@0: class ContainerLayerD3D9 : public ContainerLayer, michael@0: public LayerD3D9 michael@0: { michael@0: public: michael@0: ContainerLayerD3D9(LayerManagerD3D9 *aManager); michael@0: ~ContainerLayerD3D9(); michael@0: michael@0: nsIntRect GetVisibleRect() { return mVisibleRegion.GetBounds(); } michael@0: michael@0: /* LayerD3D9 implementation */ michael@0: Layer* GetLayer(); michael@0: michael@0: LayerD3D9* GetFirstChildD3D9(); michael@0: michael@0: bool IsEmpty(); michael@0: michael@0: void RenderLayer(); michael@0: michael@0: virtual void LayerManagerDestroyed(); michael@0: michael@0: virtual void ComputeEffectiveTransforms(const gfx::Matrix4x4& aTransformToSurface) michael@0: { michael@0: DefaultComputeEffectiveTransforms(aTransformToSurface); michael@0: } michael@0: }; michael@0: michael@0: } /* layers */ michael@0: } /* mozilla */ michael@0: michael@0: #endif /* GFX_CONTAINERLAYERD3D9_H */