| Flutter Impeller |

picture_recorder.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #pragma once
6
7 #include "flutter/fml/macros.h"
8 #include "impeller/aiks/canvas.h"
9 #include "impeller/aiks/picture.h"
10
11 namespace impeller {
12
13 class PictureRecorder {
14 public:
15 PictureRecorder();
16
17 ~PictureRecorder();
18
19 std::shared_ptr<Canvas> GetCanvas() const;
20
21 Picture EndRecordingAsPicture();
22
23 private:
24 std::shared_ptr<Canvas> canvas_;
25 };
26
27 } // namespace impeller
impeller::PictureRecorder::EndRecordingAsPicture
Picture EndRecordingAsPicture()
Definition: picture_recorder.cc:19
impeller::PictureRecorder::PictureRecorder
PictureRecorder()
Definition: picture_recorder.cc:11
picture.h
impeller::PictureRecorder::GetCanvas
std::shared_ptr< Canvas > GetCanvas() const
Definition: picture_recorder.cc:15
impeller::Picture
Definition: picture.h:19
impeller::PictureRecorder::~PictureRecorder
~PictureRecorder()
impeller::PictureRecorder
Definition: picture_recorder.h:13
canvas.h
impeller
Definition: aiks_context.cc:10