MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getBitmapConfigForName

Function getBitmapConfigForName

valdi/src/valdi/android/AndroidBitmap.cpp:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71static GlobalRefJavaObjectBase getBitmapConfigForName(const char* name) {
72 auto& cache = JavaEnv::getCache();
73 auto jConfigName = toJavaObject(JavaEnv(), std::string_view(name));
74 return GlobalRefJavaObjectBase(
75 cache.getBitmapConfigValueOfMethod().call(cache.getBitmapConfigClass().getClass(), jConfigName),
76 "BitmapConfig");
77}
78
79Valdi::Result<Valdi::Ref<AndroidBitmap>> AndroidBitmap::make(const Valdi::BitmapInfo& info) {
80 const GlobalRefJavaObjectBase* config = nullptr;

Callers 1

makeMethod · 0.85

Calls 5

toJavaObjectFunction · 0.85
callMethod · 0.65
JavaEnvClass · 0.50
getClassMethod · 0.45

Tested by

no test coverage detected