#include "cef_capture.h"
#include "nageru_cef_app.h"
+#include "nageru/defs.h"
#undef CHECK
#include <cef_app.h>
});
}
-#define FRAME_SIZE (8 << 20) // 8 MB.
-
void CEFCapture::configure_card()
{
if (video_frame_allocator == nullptr) {
lock_guard<recursive_mutex> lock(browser_mutex);
CefBrowserSettings browser_settings;
- browser_settings.web_security = cef_state_t::STATE_DISABLED;
browser_settings.webgl = cef_state_t::STATE_ENABLED;
browser_settings.windowless_frame_rate = max_fps;
CefWindowInfo window_info;
window_info.SetAsWindowless(0);
- browser = CefBrowserHost::CreateBrowserSync(window_info, cef_client, start_url, browser_settings, nullptr);
+ browser = CefBrowserHost::CreateBrowserSync(window_info, cef_client, start_url, browser_settings, nullptr, nullptr);
for (function<void()> &task : deferred_tasks) {
task();
}