blob: e419695f0b10ca16892afc5c986d3df904d9fa52 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_AIKS_PICTURE_RECORDER_H_
#define FLUTTER_IMPELLER_AIKS_PICTURE_RECORDER_H_
#include "impeller/aiks/canvas.h"
#include "impeller/aiks/picture.h"
namespace impeller {
class PictureRecorder {
public:
PictureRecorder();
~PictureRecorder();
std::shared_ptr<Canvas> GetCanvas() const;
Picture EndRecordingAsPicture();
private:
std::shared_ptr<Canvas> canvas_;
};
} // namespace impeller
#endif // FLUTTER_IMPELLER_AIKS_PICTURE_RECORDER_H_