Flutter Impeller
shadow_realm.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_IMPELLER_TOOLKIT_ANDROID_SHADOW_REALM_H_
6
#define FLUTTER_IMPELLER_TOOLKIT_ANDROID_SHADOW_REALM_H_
7
8
#include <string_view>
9
10
namespace
impeller::android
{
11
12
// Looks like you're going to the Shadow Realm, Jimbo.
13
class
ShadowRealm
{
14
public
:
15
/// @brief Whether the device should disable any usage of Android Hardware
16
/// Buffers regardless of stated support.
17
static
bool
ShouldDisableAHB
();
18
19
// For testing.
20
static
bool
ShouldDisableAHBInternal
(std::string_view clientidbase,
21
std::string_view first_api_level,
22
uint32_t api_level);
23
};
24
25
}
// namespace impeller::android
26
27
#endif // FLUTTER_IMPELLER_TOOLKIT_ANDROID_SHADOW_REALM_H_
impeller::android::ShadowRealm::ShouldDisableAHB
static bool ShouldDisableAHB()
Whether the device should disable any usage of Android Hardware Buffers regardless of stated support.
Definition:
shadow_realm.cc:13
impeller::android::ShadowRealm::ShouldDisableAHBInternal
static bool ShouldDisableAHBInternal(std::string_view clientidbase, std::string_view first_api_level, uint32_t api_level)
Definition:
shadow_realm.cc:25
impeller::android
Definition:
choreographer.cc:9
impeller::android::ShadowRealm
Definition:
shadow_realm.h:13
impeller
toolkit
android
shadow_realm.h
Generated by
1.8.17