Flutter Engine
 
Loading...
Searching...
No Matches
test_vulkan_image.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_IMAGE_H_
6#define FLUTTER_TESTING_TEST_VULKAN_IMAGE_H_
7
9
12
13namespace flutter::testing {
14
15class TestVulkanContext;
16
17/// Captures the lifetime of a test VkImage along with its bound memory.
19 public:
22
24
25 VkImage GetImage();
26
27 private:
29
30 // The lifetime of the Vulkan state must exceed memory/image handles.
32
35
37
38 friend TestVulkanContext;
39};
40
41} // namespace flutter::testing
42
43#endif // FLUTTER_TESTING_TEST_VULKAN_IMAGE_H_
Captures the lifetime of a test VkImage along with its bound memory.
TestVulkanImage(TestVulkanImage &&other)
TestVulkanImage & operator=(TestVulkanImage &&other)
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27