Flutter Engine
 
Loading...
Searching...
No Matches
image_external_texture_vk_impeller.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_ANDROID_IMAGE_EXTERNAL_TEXTURE_VK_IMPELLER_H_
6#define FLUTTER_SHELL_PLATFORM_ANDROID_IMAGE_EXTERNAL_TEXTURE_VK_IMPELLER_H_
7
8#include <cstdint>
9#include <utility>
11
16
17namespace flutter {
18
20 public:
22 const std::shared_ptr<impeller::ContextVK>& impeller_context,
23 int64_t id,
25 hardware_buffer_texture_entry,
26 const std::shared_ptr<PlatformViewAndroidJNI>& jni_facade,
28
30
31 private:
32 void Attach(PaintContext& context) override;
33 void ProcessFrame(PaintContext& context, const SkRect& bounds) override;
34 void Detach() override;
35
36 const std::shared_ptr<impeller::ContextVK> impeller_context_;
37};
38
39} // namespace flutter
40
41#endif // FLUTTER_SHELL_PLATFORM_ANDROID_IMAGE_EXTERNAL_TEXTURE_VK_IMPELLER_H_
External texture peered to a sequence of android.hardware.HardwareBuffers.
ImageLifecycle
Whether the last image should be reset when the context is destroyed.