[DevUI DFM] Add helpers to load native resources in "dev_ui_resources.pak".
This CL adds helper functions to load DevUI DFM native resources.
* Add enum chrome::FILE_DEV_UI_RESOURCES_PACK to specify path for
"dev_ui_resources.pak" on Android.
* Add LoadAndroidDevUiPackFile().
* Adds another {file descriptor, memory mapped file regions} global
variable in resource_bundle_android.h. All these will be cleaned up
in the future.
* Add LoadDevUiResources() (in new file) as the main function to call
to load DevUI DFM resources (hidden behind DFMIFY_DEV_UI).
* There's no need for a function to return the file descriptor of
"dev_ui_resources.pak", because we do not intend to forward it to
child processes.
Bug: 927131
Change-Id: I0c4e42e33b959d0a022f1287748573ebaf79c685
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1769218Reviewed-by:
Nico Weber <thakis@chromium.org>
Reviewed-by:
Samuel Huang <huangs@chromium.org>
Reviewed-by:
Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Samuel Huang <huangs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#691672}
Showing
Please register or sign in to comment