This patch combine three patch which is related to "--gcov" flag.
[platform/framework/web/chromium-efl.git] / gin / time_clamper.cc
1 // Copyright 2023 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "gin/time_clamper.h"
6
7 #include "build/build_config.h"
8
9 namespace gin {
10
11 // As site isolation is enabled on desktop platforms, we can safely provide
12 // more timing resolution. Jittering is still enabled everywhere.
13 #if BUILDFLAG(IS_ANDROID)
14 // static
15 const int64_t TimeClamper::kResolutionMicros = 100;
16 #else
17 const int64_t TimeClamper::kResolutionMicros = 5;
18 #endif
19
20 }  // namespace gin