Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
test_vulkan_surface.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_SURFACE_H_
6#define FLUTTER_TESTING_TEST_VULKAN_SURFACE_H_
7
8#include <memory>
9#include "flutter/testing/test_vulkan_context.h"
10
15
16namespace flutter {
17
18namespace testing {
19
21 public:
22 static std::unique_ptr<TestVulkanSurface> Create(
23 const TestVulkanContext& context,
24 const SkISize& surface_size);
25
26 bool IsValid() const;
27
29
30 VkImage GetImage();
31
32 private:
34
35 TestVulkanImage image_;
36 sk_sp<SkSurface> surface_;
37};
38
39} // namespace testing
40} // namespace flutter
41
42#endif // FLUTTER_TESTING_TEST_VULKAN_SURFACE_H_
static sk_sp< Effect > Create()
Captures the lifetime of a test VkImage along with its bound memory.
sk_sp< SkImage > GetSurfaceSnapshot() const
sk_sp< SkImage > image
Definition examples.cpp:29