X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fcef_capture.h;h=cc3c67c566517b85fbf0b961747ac371555f075e;hb=refs%2Fheads%2Faudio-delay;hp=29dededf7b60ad8696dfaec10c71c7f7e84844f4;hpb=9b7d691b4cc5db7dbfc18c82e86c1207fcac4722;p=nageru diff --git a/nageru/cef_capture.h b/nageru/cef_capture.h index 29deded..cc3c67c 100644 --- a/nageru/cef_capture.h +++ b/nageru/cef_capture.h @@ -52,7 +52,7 @@ public: void OnPaint(CefRefPtr browser, PaintElementType type, const RectList &dirtyRects, const void *buffer, int width, int height) override; - bool GetViewRect(CefRefPtr browser, CefRect &rect) override; + void GetViewRect(CefRefPtr browser, CefRect &rect) override; // CefLoadHandler. @@ -85,11 +85,11 @@ public: void set_max_fps(int max_fps); void execute_javascript_async(const std::string &js); void resize(unsigned width, unsigned height); - void request_new_frame(); + void request_new_frame(bool ignore_if_locked); // Callbacks from NageruCEFClient. void OnPaint(const void *buffer, int width, int height); - bool GetViewRect(CefRect &rect); + void GetViewRect(CefRect &rect); void OnLoadEnd(); // CaptureInterface.