Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
android_surface_vulkan_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_VULKAN_IMPELLER_H_
6#define FLUTTER_SHELL_PLATFORM_ANDROID_ANDROID_SURFACE_VULKAN_IMPELLER_H_
7
8#include "flutter/fml/concurrent_message_loop.h"
9#include "flutter/fml/macros.h"
10#include "flutter/impeller/renderer/backend/vulkan/surface_context_vk.h"
11#include "flutter/shell/platform/android/android_context_vulkan_impeller.h"
12#include "flutter/shell/platform/android/surface/android_native_window.h"
13#include "flutter/shell/platform/android/surface/android_surface.h"
14
15namespace flutter {
16
18 public:
20 const std::shared_ptr<AndroidContextVulkanImpeller>& android_context);
21
23
24 // |AndroidSurface|
25 bool IsValid() const override;
26
27 // |AndroidSurface|
28 std::unique_ptr<Surface> CreateGPUSurface(
29 GrDirectContext* gr_context) override;
30
31 // |AndroidSurface|
32 void TeardownOnScreenContext() override;
33
34 // |AndroidSurface|
35 bool OnScreenSurfaceResize(const SkISize& size) override;
36
37 // |AndroidSurface|
38 bool ResourceContextMakeCurrent() override;
39
40 // |AndroidSurface|
41 bool ResourceContextClearCurrent() override;
42
43 // |AndroidSurface|
44 std::shared_ptr<impeller::Context> GetImpellerContext() override;
45
46 // |AndroidSurface|
48
49 private:
50 std::shared_ptr<impeller::SurfaceContextVK> surface_context_vk_;
52 bool is_valid_ = false;
53
55};
56
57} // namespace flutter
58
59#endif // FLUTTER_SHELL_PLATFORM_ANDROID_ANDROID_SURFACE_VULKAN_IMPELLER_H_
bool SetNativeWindow(fml::RefPtr< AndroidNativeWindow > window) override
std::unique_ptr< Surface > CreateGPUSurface(GrDirectContext *gr_context) override
std::shared_ptr< impeller::Context > GetImpellerContext() override
bool OnScreenSurfaceResize(const SkISize &size) override
GLFWwindow * window
Definition main.cc:45
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27
it will be possible to load the file into Perfetto s trace viewer 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
Definition switches.h:259