Flutter Engine
 
Loading...
Searching...
No Matches
ios_external_texture_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_DARWIN_IOS_IOS_EXTERNAL_TEXTURE_METAL_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_EXTERNAL_TEXTURE_METAL_H_
7
11
12namespace flutter {
13
14class IOSExternalTextureMetal final : public Texture {
15 public:
17 FlutterDarwinExternalTextureMetal* darwin_external_texture_metal);
18
19 // |Texture|
21
22 private:
23 FlutterDarwinExternalTextureMetal* darwin_external_texture_metal_;
24
25 // |Texture|
26 void Paint(PaintContext& context,
27 const DlRect& bounds,
28 bool freeze,
29 const DlImageSampling sampling) override;
30
31 // |Texture|
32 void OnGrContextCreated() override;
33
34 // |Texture|
35 void OnGrContextDestroyed() override;
36
37 // |Texture|
38 void MarkNewFrameAvailable() override;
39
40 // |Texture|
41 void OnTextureUnregistered() override;
42
44};
45
46} // namespace flutter
47
48#endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_EXTERNAL_TEXTURE_METAL_H_
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27