Flutter Engine
 
Loading...
Searching...
No Matches
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
15
16#include "third_party/skia/include/gpu/ganesh/GrDirectContext.h"
17
18namespace flutter::testing {
19
20class TestVulkanContext : public fml::RefCountedThreadSafe<TestVulkanContext> {
21 public:
24
25 std::optional<TestVulkanImage> CreateImage(const DlISize& size) const;
26
27 sk_sp<GrDirectContext> GetGrDirectContext() const;
28
29 private:
31 std::unique_ptr<vulkan::VulkanApplication> application_;
32 std::unique_ptr<vulkan::VulkanDevice> device_;
33
34 sk_sp<GrDirectContext> context_;
35
38
42};
43
44} // namespace flutter::testing
45
46#endif // FLUTTER_TESTING_TEST_VULKAN_CONTEXT_H_
sk_sp< GrDirectContext > GetGrDirectContext() const
std::optional< TestVulkanImage > CreateImage(const DlISize &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 use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all 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
#define FML_FRIEND_REF_COUNTED_THREAD_SAFE(T)
#define FML_FRIEND_MAKE_REF_COUNTED(T)