Loading libs/hwui/Properties.cpp +0 −7 Original line number Diff line number Diff line Loading @@ -50,9 +50,6 @@ constexpr bool skip_eglmanager_telemetry() { constexpr bool resample_gainmap_regions() { return false; } constexpr bool early_preload_gl_context() { return false; } } // namespace hwui_flags #endif // __linux__ Loading Loading @@ -290,9 +287,5 @@ bool Properties::resampleGainmapRegions() { return sResampleGainmapRegions; } bool Properties::earlyPreloadGlContext() { return base::GetBoolProperty(PROPERTY_EARLY_PRELOAD_GL_CONTEXT, hwui_flags::early_preload_gl_context()); } } // namespace uirenderer } // namespace android libs/hwui/Properties.h +0 −3 Original line number Diff line number Diff line Loading @@ -236,8 +236,6 @@ enum DebugLevel { #define PROPERTY_SKIP_EGLMANAGER_TELEMETRY "debug.hwui.skip_eglmanager_telemetry" #define PROPERTY_EARLY_PRELOAD_GL_CONTEXT "debug.hwui.early_preload_gl_context" /** * Property for font reading library. */ Loading Loading @@ -397,7 +395,6 @@ public: static bool initializeGlAlways(); static bool resampleGainmapRegions(); static bool earlyPreloadGlContext(); private: static StretchEffectBehavior stretchEffectBehavior; Loading libs/hwui/aconfig/hwui_flags.aconfig +0 −7 Original line number Diff line number Diff line Loading @@ -168,13 +168,6 @@ flag { } } flag { name: "early_preload_gl_context" namespace: "core_graphics" description: "Preload GL context on renderThread preload. This improves app startup time for apps using GL." bug: "383612849" } flag { name: "early_preinit_buffer_allocator" namespace: "core_graphics" Loading libs/hwui/renderthread/RenderThread.cpp +4 −9 Original line number Diff line number Diff line Loading @@ -460,15 +460,10 @@ bool RenderThread::isCurrent() { void RenderThread::preload() { // EGL driver is always preloaded only if HWUI renders with GL. if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaGL) { if (Properties::earlyPreloadGlContext()) { queue().post([this]() { ATRACE_NAME("earlyPreloadGlContext"); requireGlContext(); }); } else { std::thread eglInitThread([]() { eglGetDisplay(EGL_DEFAULT_DISPLAY); }); eglInitThread.detach(); } } else { requireVkContext(); } Loading Loading
libs/hwui/Properties.cpp +0 −7 Original line number Diff line number Diff line Loading @@ -50,9 +50,6 @@ constexpr bool skip_eglmanager_telemetry() { constexpr bool resample_gainmap_regions() { return false; } constexpr bool early_preload_gl_context() { return false; } } // namespace hwui_flags #endif // __linux__ Loading Loading @@ -290,9 +287,5 @@ bool Properties::resampleGainmapRegions() { return sResampleGainmapRegions; } bool Properties::earlyPreloadGlContext() { return base::GetBoolProperty(PROPERTY_EARLY_PRELOAD_GL_CONTEXT, hwui_flags::early_preload_gl_context()); } } // namespace uirenderer } // namespace android
libs/hwui/Properties.h +0 −3 Original line number Diff line number Diff line Loading @@ -236,8 +236,6 @@ enum DebugLevel { #define PROPERTY_SKIP_EGLMANAGER_TELEMETRY "debug.hwui.skip_eglmanager_telemetry" #define PROPERTY_EARLY_PRELOAD_GL_CONTEXT "debug.hwui.early_preload_gl_context" /** * Property for font reading library. */ Loading Loading @@ -397,7 +395,6 @@ public: static bool initializeGlAlways(); static bool resampleGainmapRegions(); static bool earlyPreloadGlContext(); private: static StretchEffectBehavior stretchEffectBehavior; Loading
libs/hwui/aconfig/hwui_flags.aconfig +0 −7 Original line number Diff line number Diff line Loading @@ -168,13 +168,6 @@ flag { } } flag { name: "early_preload_gl_context" namespace: "core_graphics" description: "Preload GL context on renderThread preload. This improves app startup time for apps using GL." bug: "383612849" } flag { name: "early_preinit_buffer_allocator" namespace: "core_graphics" Loading
libs/hwui/renderthread/RenderThread.cpp +4 −9 Original line number Diff line number Diff line Loading @@ -460,15 +460,10 @@ bool RenderThread::isCurrent() { void RenderThread::preload() { // EGL driver is always preloaded only if HWUI renders with GL. if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaGL) { if (Properties::earlyPreloadGlContext()) { queue().post([this]() { ATRACE_NAME("earlyPreloadGlContext"); requireGlContext(); }); } else { std::thread eglInitThread([]() { eglGetDisplay(EGL_DEFAULT_DISPLAY); }); eglInitThread.detach(); } } else { requireVkContext(); } Loading