Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
Loading...
Searching...
No Matches
vulkan_golden_screenshotter.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
#ifndef FLUTTER_IMPELLER_GOLDEN_TESTS_VULKAN_GOLDEN_SCREENSHOTTER_H_
6
#define FLUTTER_IMPELLER_GOLDEN_TESTS_VULKAN_GOLDEN_SCREENSHOTTER_H_
7
8
#include "
flutter/impeller/golden_tests/golden_screenshotter.h
"
9
#include "
impeller/display_list/aiks_context.h
"
10
11
namespace
impeller
{
12
namespace
testing {
13
14
/// Converts `Picture`s and `DisplayList`s to `MetalScreenshot`s with the
15
/// playground backend.
16
class
VulkanGoldenScreenshotter
:
public
GoldenScreenshotter
{
17
public
:
18
explicit
VulkanGoldenScreenshotter
(
19
const
std::unique_ptr<PlaygroundImpl>& playground);
20
21
~VulkanGoldenScreenshotter
();
22
23
std::unique_ptr<Screenshot>
MakeScreenshot
(
24
const
AiksContext
& aiks_context,
25
const
std::shared_ptr<Texture>&
texture
)
override
;
26
27
PlaygroundImpl
&
GetPlayground
()
override
;
28
29
private
:
30
const
std::unique_ptr<PlaygroundImpl>& playground_;
31
};
32
33
}
// namespace testing
34
}
// namespace impeller
35
36
#endif
// FLUTTER_IMPELLER_GOLDEN_TESTS_VULKAN_GOLDEN_SCREENSHOTTER_H_
aiks_context.h
impeller::AiksContext
Definition
aiks_context.h:20
impeller::PlaygroundImpl
Definition
playground_impl.h:18
impeller::testing::GoldenScreenshotter
Definition
golden_screenshotter.h:17
impeller::testing::VulkanGoldenScreenshotter
Definition
vulkan_golden_screenshotter.h:16
impeller::testing::VulkanGoldenScreenshotter::~VulkanGoldenScreenshotter
~VulkanGoldenScreenshotter()
impeller::testing::VulkanGoldenScreenshotter::MakeScreenshot
std::unique_ptr< Screenshot > MakeScreenshot(const AiksContext &aiks_context, const std::shared_ptr< Texture > &texture) override
Definition
vulkan_golden_screenshotter.mm:23
impeller::testing::VulkanGoldenScreenshotter::GetPlayground
PlaygroundImpl & GetPlayground() override
Definition
vulkan_golden_screenshotter.mm:30
golden_screenshotter.h
texture
FlTexture * texture
Definition
mock_texture_registrar.cc:24
impeller
Definition
texture.h:16
impeller
golden_tests
vulkan_golden_screenshotter.h
Generated on Fri Jul 24 2026 07:12:34 for Flutter Engine Uber Docs by
1.9.8