Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb3058f2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove early_preload_gl_context flag" into main

parents 532f9022 f857605b
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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__
@@ -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
+0 −3
Original line number Diff line number Diff line
@@ -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.
 */
@@ -397,7 +395,6 @@ public:

    static bool initializeGlAlways();
    static bool resampleGainmapRegions();
    static bool earlyPreloadGlContext();

private:
    static StretchEffectBehavior stretchEffectBehavior;
+0 −7
Original line number Diff line number Diff line
@@ -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"
+4 −9
Original line number Diff line number Diff line
@@ -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();
    }