Flutter Engine
The Flutter Engine
impeller
aiks
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
5
#include "
impeller/aiks/picture_recorder.h
"
6
7
#include "
impeller/aiks/canvas.h
"
8
9
namespace
impeller
{
10
11
PictureRecorder::PictureRecorder
() : canvas_(
std
::make_shared<
Canvas
>()) {}
12
13
PictureRecorder::~PictureRecorder
() =
default
;
14
15
std::shared_ptr<Canvas>
PictureRecorder::GetCanvas
()
const
{
16
return
canvas_;
17
}
18
19
Picture
PictureRecorder::EndRecordingAsPicture
() {
20
return
canvas_->EndRecordingAsPicture();
21
}
22
23
}
// namespace impeller
impeller::Canvas
Definition:
canvas.h:60
impeller::PictureRecorder::~PictureRecorder
~PictureRecorder()
impeller::PictureRecorder::PictureRecorder
PictureRecorder()
Definition:
picture_recorder.cc:11
impeller::PictureRecorder::EndRecordingAsPicture
Picture EndRecordingAsPicture()
Definition:
picture_recorder.cc:19
impeller::PictureRecorder::GetCanvas
std::shared_ptr< Canvas > GetCanvas() const
Definition:
picture_recorder.cc:15
canvas.h
picture_recorder.h
impeller
Definition:
texture.h:18
std
Definition:
ref_ptr.h:256
impeller::Picture
Definition:
picture.h:17
Generated on Sun Jun 23 2024 21:55:06 for Flutter Engine by
1.9.4