Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[core] Split layer type specific code in mbgl::Programs #13577

Merged
merged 1 commit into from
Jan 11, 2019

Commits on Jan 10, 2019

  1. [core] Split layer type specific code in mbgl::Programs

    Progams code for a certain layer type is encapsulted within
    a dedicated `<layer type>Programs` class, inherited from
    the generic base `LayerTypePrograms` class.
    
    `mbgl::Programs::get<layer type>Programs()` lazily initializes the
    layer type-specific programs code using pointer to the base class,
    which allows LTO to remove this code from binaries (if the corresponding
    `get<layer type>Programs()` method can never be invoked).
    pozdnyakov committed Jan 10, 2019
    Configuration menu
    Copy the full SHA
    33a98b9 View commit details
    Browse the repository at this point in the history