GraphicsLayerTransform.h [plain text]
#ifndef GraphicsLayerTransform_h
#define GraphicsLayerTransform_h
#include "FloatPoint.h"
#include "FloatPoint3D.h"
#include "FloatSize.h"
#include "TransformationMatrix.h"
namespace WebCore {
class GraphicsLayerTransform {
public:
GraphicsLayerTransform();
void setPosition(const FloatPoint&);
void setSize(const FloatSize&);
void setAnchorPoint(const FloatPoint3D&);
void setFlattening(bool);
void setLocalTransform(const TransformationMatrix&);
void setChildrenTransform(const TransformationMatrix&);
const TransformationMatrix& combined() const;
const TransformationMatrix& combinedForChildren() const;
void combineTransforms(const TransformationMatrix& parentTransform);
private:
void combineTransformsForChildren() const;
FloatPoint3D m_anchorPoint;
FloatPoint m_position;
FloatSize m_size;
bool m_flattening;
bool m_dirty;
mutable bool m_childrenDirty;
TransformationMatrix m_local;
TransformationMatrix m_children;
TransformationMatrix m_combined;
mutable TransformationMatrix m_combinedForChildren;
};
}
#endif // GraphicsLayerTransform_h