Flutter Engine
 
Loading...
Searching...
No Matches
embedder_test_backingstore_producer_vulkan.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_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_BACKINGSTORE_PRODUCER_VULKAN_H_
6#define FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_BACKINGSTORE_PRODUCER_VULKAN_H_
7
9
11
12namespace flutter::testing {
13
16 public:
17 EmbedderTestBackingStoreProducerVulkan(sk_sp<GrDirectContext> context,
19
21
22 bool Create(const FlutterBackingStoreConfig* config,
23 FlutterBackingStore* backing_store_out) override;
24
25 sk_sp<SkSurface> GetSurface(
26 const FlutterBackingStore* backing_store) const override;
27
28 sk_sp<SkImage> MakeImageSnapshot(
29 const FlutterBackingStore* backing_store) const override;
30
31 private:
32 fml::RefPtr<TestVulkanContext> test_vulkan_context_;
33
35};
36
37} // namespace flutter::testing
38
39#endif // FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_BACKINGSTORE_PRODUCER_VULKAN_H_
GLenum type
sk_sp< SkSurface > GetSurface(const FlutterBackingStore *backing_store) const override
sk_sp< SkImage > MakeImageSnapshot(const FlutterBackingStore *backing_store) const override
bool Create(const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out) override
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27