Flutter Impeller
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:58
impeller::PictureRecorder::EndRecordingAsPicture
Picture EndRecordingAsPicture()
Definition:
picture_recorder.cc:19
impeller::PictureRecorder::PictureRecorder
PictureRecorder()
Definition:
picture_recorder.cc:11
impeller::PictureRecorder::GetCanvas
std::shared_ptr< Canvas > GetCanvas() const
Definition:
picture_recorder.cc:15
impeller::Picture
Definition:
picture.h:20
impeller::PictureRecorder::~PictureRecorder
~PictureRecorder()
canvas.h
picture_recorder.h
std
Definition:
comparable.h:95
impeller
Definition:
aiks_blur_unittests.cc:20
impeller
aiks
picture_recorder.cc
Generated by
1.8.17