X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=cef_capture.h;fp=cef_capture.h;h=be5402fda9deb31c0a94cfe756b056250c999fe4;hp=587af0a551dc0722af6b27acb821c28c83ccb58d;hb=f1ce3c5618f769b1388b39c637877d242c8ddeed;hpb=8ec5630a8e7ec089d2e39697d51642278d1977d7 diff --git a/cef_capture.h b/cef_capture.h index 587af0a..be5402f 100644 --- a/cef_capture.h +++ b/cef_capture.h @@ -71,6 +71,7 @@ public: void set_url(const std::string &url); void reload(); + void set_max_fps(int max_fps); void OnPaint(const void *buffer, int width, int height); @@ -163,6 +164,7 @@ private: bmusb::frame_callback_t frame_callback = nullptr; std::string description, start_url; + std::atomic max_fps{60}; std::mutex browser_mutex; CefRefPtr browser; // Under .