Flutter Engine
The 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
8#include "flutter/fml/macros.h"
9
10#include "flutter/fml/memory/ref_ptr.h"
11#include "flutter/vulkan/procs/vulkan_handle.h"
13
14namespace flutter {
15namespace testing {
16
17class TestVulkanContext;
18
19/// Captures the lifetime of a test VkImage along with its bound memory.
21 public:
24
26
27 VkImage GetImage();
28
29 private:
31
32 // The lifetime of the Vulkan state must exceed memory/image handles.
34
37
39
40 friend TestVulkanContext;
41};
42
43} // namespace testing
44} // namespace flutter
45
46#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