Skip to content
Snippets Groups Projects
  • Simon McVittie's avatar
    98ac00a1
    pv-runtime: Convert the graphics provider into an object · 98ac00a1
    Simon McVittie authored
    
    This encapsulates both the PROVIDER_GRAPHICS_STACK flag and the
    associated paths: if the object is null then the paths are meaningless,
    and if the object is non-null then they are meaningful.
    
    Making this an immutable "value object" also means we can share it
    between threads, unlike PvRuntime, which has state. This could become
    important if we want to make graphics driver enumeration multi-threaded
    to speed up pressure-vessel.
    
    Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
    98ac00a1
    History
    pv-runtime: Convert the graphics provider into an object
    Simon McVittie authored
    
    This encapsulates both the PROVIDER_GRAPHICS_STACK flag and the
    associated paths: if the object is null then the paths are meaningless,
    and if the object is non-null then they are meaningful.
    
    Making this an immutable "value object" also means we can share it
    between threads, unlike PvRuntime, which has state. This could become
    important if we want to make graphics driver enumeration multi-threaded
    to speed up pressure-vessel.
    
    Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>