Documentation
¶
Overview ¶
Package env provides environment variable management for rendering subsystems.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HardwareSurveyor ¶ added in v0.23.0
type HardwareSurveyor struct {
// contains filtered or unexported fields
}
HardwareSurveyor implements port.HardwareSurveyor for Linux systems. It is safe for concurrent use after creation.
func NewHardwareSurveyor ¶ added in v0.23.0
func NewHardwareSurveyor() *HardwareSurveyor
NewHardwareSurveyor creates a new hardware surveyor.
func (*HardwareSurveyor) Survey ¶ added in v0.23.0
func (s *HardwareSurveyor) Survey(ctx context.Context) port.HardwareInfo
Survey detects and returns hardware information. Results are cached after the first call. Safe for concurrent use.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager implements port.RenderingEnvManager for configuring environment variables for GStreamer, WebKit, and GTK/GSK.
func (*Manager) ApplyEnvironment ¶
func (m *Manager) ApplyEnvironment(ctx context.Context, settings RenderingSettings) error
ApplyEnvironment sets all rendering environment variables. Must be called before GTK/WebKit initialization.
func (*Manager) DetectGPUVendor ¶
DetectGPUVendor identifies the primary GPU vendor from system info.
func (*Manager) GetAppliedVars ¶
GetAppliedVars returns a copy of applied environment variables.
type RenderingSettings ¶ added in v0.28.0
type RenderingSettings struct {
// GStreamer
ForceVSync bool
GLRenderingMode string
GStreamerDebugLevel int
// WebKit compositor
DisableDMABufRenderer bool
ForceCompositingMode bool
DisableCompositingMode bool
// GTK/GSK
GSKRenderer string
DisableMipmaps bool
PreferGL bool
// Debug
ShowFPS bool
SampleMemory bool
DebugFrames bool
// Skia
SkiaCPUPaintingThreads int
SkiaGPUPaintingThreads int
SkiaEnableCPURendering bool
}
RenderingSettings holds all rendering environment variable settings. This was previously port.RenderingEnvSettings but moved here because these settings are engine-specific (WebKit/GTK/GStreamer).