X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=cef_capture.cpp;fp=cef_capture.cpp;h=548e529ad3d2e5dc457e638288c787043d2016eb;hp=a2f230aae9af610ec6710278b33f1ccbbe462472;hb=8ec5630a8e7ec089d2e39697d51642278d1977d7;hpb=cd48c8ab6d7425d4b4d9fdb2493da69b44848c9e diff --git a/cef_capture.cpp b/cef_capture.cpp index a2f230a..548e529 100644 --- a/cef_capture.cpp +++ b/cef_capture.cpp @@ -56,6 +56,13 @@ void CEFCapture::set_url(const string &url) }); } +void CEFCapture::reload() +{ + post_to_cef_ui_thread([this] { + browser->Reload(); + }); +} + void CEFCapture::OnPaint(const void *buffer, int width, int height) { steady_clock::time_point timestamp = steady_clock::now();