File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
engine/src/flutter/shell/platform/android Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 41
41
namespace flutter {
42
42
43
43
namespace {
44
+
45
+ static constexpr int kMinAPILevelHCPP = 34 ;
46
+
44
47
AndroidContext::ContextSettings CreateContextSettings (
45
48
const Settings& p_settings) {
46
49
AndroidContext::ContextSettings settings;
@@ -138,9 +141,11 @@ PlatformViewAndroid::PlatformViewAndroid(
138
141
android_use_new_platform_view_ =
139
142
android_context->RenderingApi () ==
140
143
AndroidRenderingAPI::kImpellerVulkan &&
144
+ (android_get_device_api_level () >= kMinAPILevelHCPP ) &&
141
145
delegate.OnPlatformViewGetSettings ().enable_surface_control ;
142
146
FML_CHECK (android_surface_ && android_surface_->IsValid ())
143
- << " Could not create an OpenGL, Vulkan or Software surface to set up "
147
+ << " Could not create an OpenGL, Vulkan or Software surface to set "
148
+ " up "
144
149
" rendering." ;
145
150
}
146
151
}
You can’t perform that action at this time.
0 commit comments