Flutter Impeller
metal_screenshoter.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 "
flutter/impeller/aiks/picture.h
"
9
#include "
flutter/impeller/golden_tests/metal_screenshot.h
"
10
#include "
flutter/impeller/playground/playground_impl.h
"
11
12
namespace
impeller
{
13
namespace
testing {
14
15
/// Converts `Picture`s to `MetalScreenshot`s with the playground backend.
16
class
MetalScreenshoter
{
17
public
:
18
MetalScreenshoter
();
19
20
std::unique_ptr<MetalScreenshot>
MakeScreenshot
(
AiksContext
& aiks_context,
21
const
Picture
& picture,
22
const
ISize
& size = {300,
23
300});
24
25
const
PlaygroundImpl
&
GetPlayground
()
const
{
return
*playground_; }
26
27
private
:
28
std::unique_ptr<PlaygroundImpl> playground_;
29
};
30
31
}
// namespace testing
32
}
// namespace impeller
impeller::AiksContext
Definition:
aiks_context.h:20
picture.h
impeller::PlaygroundImpl
Definition:
playground_impl.h:17
impeller::Picture
Definition:
picture.h:19
impeller::TSize< int64_t >
metal_screenshot.h
impeller::testing::MetalScreenshoter
Converts Pictures to MetalScreenshots with the playground backend.
Definition:
metal_screenshoter.h:16
impeller::testing::MetalScreenshoter::MetalScreenshoter
MetalScreenshoter()
Definition:
metal_screenshoter.mm:16
playground_impl.h
impeller
Definition:
aiks_context.cc:10
impeller::testing::MetalScreenshoter::GetPlayground
const PlaygroundImpl & GetPlayground() const
Definition:
metal_screenshoter.h:25
impeller::testing::MetalScreenshoter::MakeScreenshot
std::unique_ptr< MetalScreenshot > MakeScreenshot(AiksContext &aiks_context, const Picture &picture, const ISize &size={300, 300})
Definition:
metal_screenshoter.mm:22
impeller
golden_tests
metal_screenshoter.h
Generated by
1.8.17