mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 17:30:04 -05:00
Feature/cef speedup (#806)
* Improve cmake errors * Calling doMessageLoopWork more often to increase gui performance * Introduce frequent callbacks * Restructure browser update callbacks * Cleanup cef speedup * Add flag to toggle updating browser between renderable calls * CEF should not be used in single process mode * Update CEF version * Postbuild step for finding framework from web helper * Load libcef dynamically to fix issue with CEF update * Only include dynamic library loader on mac * Improve keyboard mapping support on MacOS * Add arrow keys * Rename manifest * Fix bug with missing blinking cursor in text fields * Bump minimum cmake version * CEF fixes: Runtime and correct helper path * Be true to actual sandbox compatibility specified by CEF * Cleanup
This commit is contained in:
committed by
Alexander Bock
parent
ba1aaa1672
commit
0dcf65ce4f
@@ -28,9 +28,33 @@
|
||||
|
||||
#include "include/cef_app.h"
|
||||
#include "include/webbrowserapp.h"
|
||||
#include "include/wrapper/cef_library_loader.h"
|
||||
|
||||
// When generating projects with CMake the CEF_USE_SANDBOX value will be defined
|
||||
// automatically. Pass -DUSE_SANDBOX=OFF to the CMake command-line to disable
|
||||
// use of the sandbox.
|
||||
#if defined(CEF_USE_SANDBOX)
|
||||
#include "include/cef_sandbox_mac.h"
|
||||
#endif
|
||||
|
||||
// Entry point function for sub-processes.
|
||||
int main(int argc, char* argv[]) {
|
||||
|
||||
#if defined(CEF_USE_SANDBOX)
|
||||
// Initialize the macOS sandbox for this helper process.
|
||||
CefScopedSandboxContext sandbox_context;
|
||||
if (!sandbox_context.Initialize(argc, argv)) {
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Load the CEF framework library at runtime instead of linking directly
|
||||
// as required by the macOS sandbox implementation.
|
||||
CefScopedLibraryLoader library_loader;
|
||||
if (!library_loader.LoadInHelper()) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Provide CEF with command-line arguments.
|
||||
CefMainArgs main_args(argc, argv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user