DescriptionImplement --ozone-platform flag to select OzonePlatform implementation at runtime
This provides a way to select an ozone implementation to use at runtime. Each
ozone implementation adds its name to the ozone_platforms GYP variable, and we
take care of parsing the flag value and configuring chromium to use that
implementation during initialization.
To support external ports, we generate the list of enabled platforms at
build time. The list is a static array that maps values of the --ozone_platform
flag to a constructor function for an OzonePlatform subclass. At runtime, we
call the constructor for platform specified on the command-line and use it to
provide implementations of the various ozone interfaces (SurfaceFactoryOzone,
EventFactoryOzone).
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232301
Patch Set 1 #Patch Set 2 : add clarifying comments to CreateOzonePlatformFoo() hooks #Patch Set 3 : remove obsolete CreateDefaultOzonePlatform() prototype #
Total comments: 6
Patch Set 4 : document CreatePlatform, GetRequestPlatform + rjkroege nits #Patch Set 5 : add external_ozone_platforms var to fix merge #Patch Set 6 : rebase #
Messages
Total messages: 9 (0 generated)
|