Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
embedder_external_texture_resolver.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_EMBEDDER_EXTERNAL_TEXTURE_RESOLVER_H_
6#define FLUTTER_SHELL_PLATFORM_EMBEDDER_EMBEDDER_EXTERNAL_TEXTURE_RESOLVER_H_
7
8#include <memory>
9
10#include "flutter/common/graphics/texture.h"
11
12#ifdef SHELL_ENABLE_GL
13#include "flutter/shell/platform/embedder/embedder_external_texture_gl.h"
14#endif
15
16#ifdef SHELL_ENABLE_METAL
17#include "flutter/shell/platform/embedder/embedder_external_texture_metal.h"
18#endif
19
20namespace flutter {
22 public:
24
26
27#ifdef SHELL_ENABLE_GL
30#endif
31
32#ifdef SHELL_ENABLE_METAL
35#endif
36
37 std::unique_ptr<Texture> ResolveExternalTexture(int64_t texture_id);
38
40
41 private:
42#ifdef SHELL_ENABLE_GL
44#endif
45
46#ifdef SHELL_ENABLE_METAL
48#endif
49
51};
52} // namespace flutter
53
54#endif // FLUTTER_SHELL_PLATFORM_EMBEDDER_EMBEDDER_EXTERNAL_TEXTURE_RESOLVER_H_
std::function< std::unique_ptr< FlutterOpenGLTexture >(int64_t, size_t, size_t)> ExternalTextureCallback
std::function< std::unique_ptr< FlutterMetalExternalTexture >(int64_t, size_t, size_t)> ExternalTextureCallback
std::unique_ptr< Texture > ResolveExternalTexture(int64_t texture_id)
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27
int64_t texture_id