Linux: Fix Check failed: generated_timestamp < total_latency_stage.end_time (see issue #3102)

This commit is contained in:
Marshall Greenblatt
2021-06-07 12:34:24 -07:00
parent 00dca9601e
commit 0aad12fe1b
6 changed files with 6 additions and 26 deletions

View File

@@ -4,8 +4,6 @@
#include "libcef/browser/native/browser_platform_delegate_native_linux.h"
#include <sys/sysinfo.h>
#include "libcef/browser/browser_host_base.h"
#include "libcef/browser/context.h"
#include "libcef/browser/native/menu_runner_linux.h"
@@ -30,18 +28,6 @@
#include "ui/views/widget/desktop_aura/desktop_window_tree_host_linux.h"
#endif
namespace {
// Returns the number of seconds since system boot.
long GetSystemUptime() {
struct sysinfo info;
if (sysinfo(&info) == 0)
return info.uptime;
return 0;
}
} // namespace
CefBrowserPlatformDelegateNativeLinux::CefBrowserPlatformDelegateNativeLinux(
const CefWindowInfo& window_info,
SkColor background_color)
@@ -328,8 +314,3 @@ CefBrowserPlatformDelegateNativeLinux::TranslateWebKeyEvent(
}
return content::NativeWebKeyboardEvent(ui_event);
}
base::TimeTicks CefBrowserPlatformDelegateNativeLinux::GetEventTimeStamp()
const {
return base::TimeTicks() + base::TimeDelta::FromSeconds(GetSystemUptime());
}