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&);
TransformationMatrix combined();
TransformationMatrix combinedForChildren();
void combineTransforms(const TransformationMatrix& parentTransform);
private:
void combineTransformsForChildren();
FloatPoint3D m_anchorPoint;
FloatPoint m_position;
FloatSize m_size;
bool m_flattening;
bool m_dirty;
bool m_childrenDirty;
TransformationMatrix m_local;
TransformationMatrix m_children;
TransformationMatrix m_combined;
TransformationMatrix m_combinedForChildren;
};
}
#endif // GraphicsLayerTransform_h