Commit 2f60f81b authored by Rye Mutt's avatar Rye Mutt 🍞

Update to cef 77

parent 2b21c57c
......@@ -46,9 +46,11 @@
<key>archive</key>
<map>
<key>hash</key>
<string>4adeeeecc86890785e514595a3f96915</string>
<string>47810b9dbe68952072fa594f9ca18c29</string>
<key>hash_algorithm</key>
<string>md5</string>
<key>url</key>
<string>http://automated-builds-secondlife-com.s3.amazonaws.com/ct2/39566/336587/cef_bin-75.0.11_gf50b3c2_chromium-75.0.3770.100.528486-windows-528486.tar.bz2</string>
<string>https://pkg.alchemyviewer.org/repository/autobuild-external/cef-bin/windows/cef_bin-77.1.7+gc7dbc2f+chromium-77.0.3865.90.1-windows-1.tar.bz2</string>
</map>
<key>name</key>
<string>windows</string>
......@@ -58,18 +60,18 @@
<key>archive</key>
<map>
<key>hash</key>
<string>5b552899caa3e80f67d5b98250e4d1b4</string>
<string>c7c2a914ae7b080b1ee66eccf76159ef</string>
<key>hash_algorithm</key>
<string>md5</string>
<key>url</key>
<string>https://pkg.dl.alchemyviewer.org/cef_bin/cef_bin-75.1.14+gc81164e+chromium-75.0.3770.100.192081218-windows64-192081218.tar.bz2</string>
<string>https://pkg.alchemyviewer.org/repository/autobuild-external/cef-bin/windows64/cef_bin-77.1.7+gc7dbc2f+chromium-77.0.3865.90.1-windows64-1.tar.bz2</string>
</map>
<key>name</key>
<string>windows64</string>
</map>
</map>
<key>version</key>
<string>75.1.14+gc81164e+chromium-75.0.3770.100.192081830</string>
<string>77.1.7+gc7dbc2f+chromium-77.0.3865.90.1</string>
</map>
</map>
<key>package_description</key>
......
......@@ -153,13 +153,11 @@ class dullahan
int frame_rate = 60;
// enable/disable features - most obvious but listed for completeness
bool begin_frame_scheduling = false; // fixes issue when onPaint not called
bool cache_enabled = true; // local cache
bool cookies_enabled = true; // cookies
bool disable_gpu = true; // disable GPU and GPU compositing
bool file_access_from_file_urls = false; // allow access files from local file system
bool disable_web_security = false; // like adding --disable-web-security to Chrome command line
bool disable_network_service = false; // like adding --disable-features=NetworkService to Chrome command line
bool autoplay_without_gesture = false; // like adding --autoplay-policy=???? to Chrome command line
bool flash_enabled = true; // system flash plugin
bool force_wave_audio = false; // forces Windows WaveOut/In audio
......@@ -200,6 +198,9 @@ class dullahan
// whether to log verbosely (true) or not (false)
int log_verbose = false;
// allow remote debugging
int enable_remote_debug = false;
// allow Chrome (or other CEF windoW) to debug via http://localhost::PORT_NUMBER
int remote_debugging_port = 1964;
......
......@@ -49,11 +49,9 @@ dullahan_impl::dullahan_impl() :
mViewHeight(0),
mSystemFlashEnabled(false),
mMediaStreamEnabled(false),
mBeginFrameScheduling(false),
mForceWaveAudio(false),
mDisableGPU(true),
mDisableWebSecurity(false),
mDisableNetworkService(false),
mAutoPlayWithoutGesture(false),
mFlipPixelsY(false),
mFlipMouseY(false),
......@@ -85,11 +83,6 @@ void dullahan_impl::OnBeforeCommandLineProcessing(const CefString& process_type,
command_line->AppendSwitch("enable-system-flash");
}
if (mBeginFrameScheduling == true)
{
command_line->AppendSwitch("enable-begin-frame-scheduling");
}
if (mForceWaveAudio == true)
{
command_line->AppendSwitch("force-wave-audio");
......@@ -103,12 +96,7 @@ void dullahan_impl::OnBeforeCommandLineProcessing(const CefString& process_type,
if (mDisableWebSecurity)
{
command_line->AppendSwitch("--disable-web-security");
}
if (mDisableNetworkService)
{
command_line->AppendSwitchWithValue("disable-features", "NetworkService");
command_line->AppendSwitch("disable-web-security");
}
if (mAutoPlayWithoutGesture)
......@@ -236,9 +224,6 @@ bool dullahan_impl::init(dullahan::dullahan_settings& user_settings)
// IMPORTANT: there is no "Use Your WebCam OK?" dialog so enable this at your peril
mMediaStreamEnabled = user_settings.media_stream_enabled;
// this flag needed for some video cards to force onPaints to work - off by default
mBeginFrameScheduling = user_settings.begin_frame_scheduling;
// this flag forces Windows WaveOut/In audio API even if Core Audio is supported
mForceWaveAudio = user_settings.force_wave_audio;
......@@ -254,12 +239,6 @@ bool dullahan_impl::init(dullahan::dullahan_settings& user_settings)
// needing a web server.
mDisableWebSecurity = user_settings.disable_web_security;
// this flag if set, adds a command line parameter that disables "network service" and
// is like adding --disable-features=NetworkService. This appears to be required after
// Chrome 75 to disable the "Chrome wants access to passwords" dialog on macOS that
// started to appear. May change later.
mDisableNetworkService = user_settings.disable_network_service;
// this flag, if set, allows video/audio to autoplay if the URL parameters are configured
// correctly to do so. (by default as of Chrome 70, audio/video does not autoplay)
mAutoPlayWithoutGesture = user_settings.autoplay_without_gesture;
......@@ -285,8 +264,11 @@ bool dullahan_impl::init(dullahan::dullahan_settings& user_settings)
CefString(&settings.log_file) = user_settings.log_file;
settings.log_severity = user_settings.log_verbose ? LOGSEVERITY_VERBOSE : LOGSEVERITY_DEFAULT;
// allow Chrome (or other CEF windoW) to debug at http://localhost::PORT_NUMBER
settings.remote_debugging_port = user_settings.remote_debugging_port;
if (user_settings.enable_remote_debug)
{
// allow Chrome (or other CEF windoW) to debug at http://localhost::PORT_NUMBER
settings.remote_debugging_port = user_settings.remote_debugging_port;
}
// initiaize CEF
bool result = CefInitialize(args, settings, this, nullptr);
......@@ -298,7 +280,6 @@ bool dullahan_impl::init(dullahan::dullahan_settings& user_settings)
// off with it's head
CefWindowInfo window_info;
window_info.SetAsWindowless(nullptr);
window_info.windowless_rendering_enabled = true;
window_info.x = 0;
window_info.y = 0;
window_info.width = user_settings.initial_width;
......
......@@ -154,11 +154,9 @@ class dullahan_impl :
int mViewHeight;
bool mSystemFlashEnabled;
bool mMediaStreamEnabled;
bool mBeginFrameScheduling;
bool mForceWaveAudio;
bool mDisableGPU;
bool mDisableWebSecurity;
bool mDisableNetworkService;
bool mAutoPlayWithoutGesture;
bool mFlipPixelsY;
bool mFlipMouseY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment