Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
Loading...
Searching...
No Matches
vulkan_golden_screenshotter.mm
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 "
flutter/impeller/golden_tests/vulkan_golden_screenshotter.h
"
6
7
#include "
flutter/fml/synchronization/waitable_event.h
"
8
#include "
flutter/impeller/testing/vulkan/vulkan_screenshotter.h
"
9
#define GLFW_INCLUDE_NONE
10
#include "third_party/glfw/include/GLFW/glfw3.h"
11
12
namespace
impeller
{
13
namespace
testing {
14
15
VulkanGoldenScreenshotter::VulkanGoldenScreenshotter
(
16
const
std::unique_ptr<PlaygroundImpl>& playground)
17
: playground_(playground) {
18
FML_CHECK
(playground_);
19
}
20
21
VulkanGoldenScreenshotter::~VulkanGoldenScreenshotter
() =
default
;
22
23
std::unique_ptr<Screenshot>
VulkanGoldenScreenshotter::MakeScreenshot
(
24
const
AiksContext
& aiks_context,
25
const
std::shared_ptr<Texture>&
texture
) {
26
return
VulkanScreenshotter::MakeScreenshot
(aiks_context.
GetContext
(),
27
texture
);
28
}
29
30
PlaygroundImpl
&
VulkanGoldenScreenshotter::GetPlayground
() {
31
return
*playground_;
32
}
33
34
}
// namespace testing
35
}
// namespace impeller
impeller::AiksContext
Definition
aiks_context.h:20
impeller::AiksContext::GetContext
std::shared_ptr< Context > GetContext() const
Definition
aiks_context.cc:38
impeller::PlaygroundImpl
Definition
playground_impl.h:18
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
impeller::testing::VulkanGoldenScreenshotter::VulkanGoldenScreenshotter
VulkanGoldenScreenshotter(const std::unique_ptr< PlaygroundImpl > &playground)
Definition
vulkan_golden_screenshotter.mm:15
impeller::testing::VulkanScreenshotter::MakeScreenshot
static std::unique_ptr< Screenshot > MakeScreenshot(const std::shared_ptr< Context > &context, const std::shared_ptr< Texture > &texture)
Definition
vulkan_screenshotter.mm:85
FML_CHECK
#define FML_CHECK(condition)
Definition
logging.h:104
texture
FlTexture * texture
Definition
mock_texture_registrar.cc:24
impeller
Definition
texture.h:16
vulkan_golden_screenshotter.h
vulkan_screenshotter.h
waitable_event.h
impeller
golden_tests
vulkan_golden_screenshotter.mm
Generated on Fri Jul 24 2026 07:12:34 for Flutter Engine Uber Docs by
1.9.8