2011-08-09 12:38:26 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
2012-05-21 04:12:37 -07:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-09-30 15:53:49 -07:00
|
|
|
|
|
|
|
#ifndef GFX_CONTAINERLAYERD3D10_H
|
|
|
|
#define GFX_CONTAINERLAYERD3D10_H
|
|
|
|
|
|
|
|
#include "LayerManagerD3D10.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
|
|
|
class ContainerLayerD3D10 : public ContainerLayer,
|
|
|
|
public LayerD3D10
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ContainerLayerD3D10(LayerManagerD3D10 *aManager);
|
|
|
|
~ContainerLayerD3D10();
|
|
|
|
|
|
|
|
nsIntRect GetVisibleRect() { return mVisibleRegion.GetBounds(); }
|
|
|
|
|
|
|
|
/* LayerD3D10 implementation */
|
2010-10-19 12:08:27 -07:00
|
|
|
virtual Layer* GetLayer();
|
2010-09-30 15:53:49 -07:00
|
|
|
|
2010-10-19 12:08:27 -07:00
|
|
|
virtual LayerD3D10* GetFirstChildD3D10();
|
2010-09-30 15:53:49 -07:00
|
|
|
|
2010-11-08 01:06:15 -08:00
|
|
|
virtual void RenderLayer();
|
2010-10-19 12:08:27 -07:00
|
|
|
virtual void Validate();
|
2010-09-30 15:53:49 -07:00
|
|
|
|
|
|
|
virtual void LayerManagerDestroyed();
|
|
|
|
|
2014-01-27 07:28:04 -08:00
|
|
|
virtual void ComputeEffectiveTransforms(const gfx::Matrix4x4& aTransformToSurface)
|
2010-11-08 01:06:15 -08:00
|
|
|
{
|
|
|
|
DefaultComputeEffectiveTransforms(aTransformToSurface);
|
|
|
|
}
|
2010-09-30 15:53:49 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} /* layers */
|
|
|
|
} /* mozilla */
|
|
|
|
|
|
|
|
#endif /* GFX_CONTAINERLAYERD3D10_H */
|