diff options
author | spang@chromium.org <spang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-01 05:37:26 +0000 |
---|---|---|
committer | spang@chromium.org <spang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-01 05:37:26 +0000 |
commit | 4814ed220f72cdf35d40e22b0afa66d8cf1ee044 (patch) | |
tree | 1e0b11916a5075275f2951e84b94b9288c11c90f /content/content_worker.gypi | |
parent | 16511ed533ddaae976e9a9ce81b40342626bc5f3 (diff) | |
download | chromium_src-4814ed220f72cdf35d40e22b0afa66d8cf1ee044.zip chromium_src-4814ed220f72cdf35d40e22b0afa66d8cf1ee044.tar.gz chromium_src-4814ed220f72cdf35d40e22b0afa66d8cf1ee044.tar.bz2 |
Implement --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).
Review URL: https://codereview.chromium.org/44053005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232301 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/content_worker.gypi')
0 files changed, 0 insertions, 0 deletions