Flutter Engine
 
Loading...
Searching...
No Matches
embedder_test_backingstore_producer_metal.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_METAL_H_
6#define FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_BACKINGSTORE_PRODUCER_METAL_H_
7
10
11namespace flutter::testing {
12
15 public:
16 EmbedderTestBackingStoreProducerMetal(sk_sp<GrDirectContext> context,
18
20
21 bool Create(const FlutterBackingStoreConfig* config,
22 FlutterBackingStore* backing_store_out) override;
23
24 sk_sp<SkSurface> GetSurface(
25 const FlutterBackingStore* backing_store) const override;
26
27 sk_sp<SkImage> MakeImageSnapshot(
28 const FlutterBackingStore* backing_store) const override;
29
30 private:
31 std::unique_ptr<TestMetalContext> test_metal_context_;
32
34};
35
36} // namespace flutter::testing
37
38#endif // FLUTTER_SHELL_PLATFORM_EMBEDDER_TESTS_EMBEDDER_TEST_BACKINGSTORE_PRODUCER_METAL_H_
GLenum type
sk_sp< SkImage > MakeImageSnapshot(const FlutterBackingStore *backing_store) const override
bool Create(const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out) override
sk_sp< SkSurface > GetSurface(const FlutterBackingStore *backing_store) const override
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27