Flutter Engine
 
Loading...
Searching...
No Matches
android_surface_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_ANDROID_SURFACE_VK_IMPELLER_H_
6#define FLUTTER_SHELL_PLATFORM_ANDROID_ANDROID_SURFACE_VK_IMPELLER_H_
7
16
17namespace flutter {
18
20 public:
22 const std::shared_ptr<AndroidContextVKImpeller>& android_context);
23
25
26 // |AndroidSurface|
27 bool IsValid() const override;
28
29 // |AndroidSurface|
30 std::unique_ptr<Surface> CreateGPUSurface(
31 GrDirectContext* gr_context) override;
32
33 // |AndroidSurface|
34 void TeardownOnScreenContext() override;
35
36 // |AndroidSurface|
37 bool OnScreenSurfaceResize(const DlISize& size) override;
38
39 // |AndroidSurface|
40 bool ResourceContextMakeCurrent() override;
41
42 // |AndroidSurface|
43 bool ResourceContextClearCurrent() override;
44
45 // |AndroidSurface|
46 std::shared_ptr<impeller::Context> GetImpellerContext() override;
47
48 // |AndroidSurface|
49 bool SetNativeWindow(
51 const std::shared_ptr<PlatformViewAndroidJNI>& jni_facade) override;
52
53 private:
54 std::shared_ptr<impeller::SurfaceContextVK> surface_context_vk_;
56 bool is_valid_ = false;
57
59};
60
61} // namespace flutter
62
63#endif // FLUTTER_SHELL_PLATFORM_ANDROID_ANDROID_SURFACE_VK_IMPELLER_H_
std::unique_ptr< Surface > CreateGPUSurface(GrDirectContext *gr_context) override
bool SetNativeWindow(fml::RefPtr< AndroidNativeWindow > window, const std::shared_ptr< PlatformViewAndroidJNI > &jni_facade) override
bool OnScreenSurfaceResize(const DlISize &size) override
std::shared_ptr< impeller::Context > GetImpellerContext() override
GLFWwindow * window
Definition main.cc:60
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size