#ifndef UI_COMPOSITOR_TRANSFORM_RECORDER_H_
#define UI_COMPOSITOR_TRANSFORM_RECORDER_H_
#include "base/memory/raw_ref.h"
#include "ui/compositor/compositor_export.h"
namespace cc {
class DisplayItemList;
}
namespace gfx {
class Transform;
}
namespace ui {
class PaintContext;
class COMPOSITOR_EXPORT TransformRecorder {
public:
explicit TransformRecorder(const PaintContext& context);
TransformRecorder(const TransformRecorder&) = delete;
TransformRecorder& operator=(const TransformRecorder&) = delete;
~TransformRecorder();
void Transform(const gfx::Transform& transform);
private:
const raw_ref<const PaintContext> context_;
bool transformed_;
};
}
#endif