Flutter Engine
The Flutter Engine
test_vulkan_context.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_TESTING_TEST_VULKAN_CONTEXT_H_
6#define FLUTTER_TESTING_TEST_VULKAN_CONTEXT_H_
7
8#include "flutter/fml/macros.h"
9#include "flutter/fml/memory/ref_ptr.h"
10#include "flutter/testing/test_vulkan_image.h"
11#include "flutter/vulkan/procs/vulkan_proc_table.h"
12#include "flutter/vulkan/vulkan_application.h"
13#include "flutter/vulkan/vulkan_device.h"
14
17
18namespace flutter {
19namespace testing {
20
21class TestVulkanContext : public fml::RefCountedThreadSafe<TestVulkanContext> {
22 public:
25
26 std::optional<TestVulkanImage> CreateImage(const SkISize& size) const;
27
29
30 private:
32 std::unique_ptr<vulkan::VulkanApplication> application_;
33 std::unique_ptr<vulkan::VulkanDevice> device_;
34
36
39
43};
44
45} // namespace testing
46} // namespace flutter
47
48#endif // FLUTTER_TESTING_TEST_VULKAN_CONTEXT_H_
sk_sp< GrDirectContext > GetGrDirectContext() const
std::optional< TestVulkanImage > CreateImage(const SkISize &size) const
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition: macros.h:27
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259
#define FML_FRIEND_REF_COUNTED_THREAD_SAFE(T)
Definition: ref_counted.h:126
#define FML_FRIEND_MAKE_REF_COUNTED(T)
Definition: ref_counted.h:132
Definition: SkSize.h:16