Flutter Engine
The Flutter Engine
picture_recorder.cc
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
6
8
9namespace impeller {
10
11PictureRecorder::PictureRecorder() : canvas_(std::make_shared<Canvas>()) {}
12
14
15std::shared_ptr<Canvas> PictureRecorder::GetCanvas() const {
16 return canvas_;
17}
18
20 return canvas_->EndRecordingAsPicture();
21}
22
23} // namespace impeller
std::shared_ptr< Canvas > GetCanvas() const
Definition: ref_ptr.h:256