Commit 2c38ce95 authored by Dmitry Gozman's avatar Dmitry Gozman Committed by Commit Bot

Move TimeClamper to core/timing

TimeClamper is only used by Performance, so there is no need
to put it as low as platform/.

Change-Id: I531be082528f2e569bbff08a5ace42076d9bb845
Reviewed-on: https://chromium-review.googlesource.com/1157174Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#584583}
parent f2bae22e
include_rules = [
"+base/auto_reset.h",
"+base/bit_cast.h",
"+base/callback.h",
"+base/callback_forward.h",
"+base/containers/span.h",
......
......@@ -2170,6 +2170,7 @@ jumbo_source_set("unit_tests") {
"timing/performance_observer_test.cc",
"timing/performance_resource_timing_test.cc",
"timing/performance_test.cc",
"timing/time_clamper_test.cc",
"timing/window_performance_test.cc",
"url/url_search_params_test.cc",
"workers/dedicated_worker_test.cc",
......
......@@ -46,6 +46,8 @@ blink_core_sources("timing") {
"sub_task_attribution.h",
"task_attribution_timing.cc",
"task_attribution_timing.h",
"time_clamper.cc",
"time_clamper.h",
"window_performance.cc",
"window_performance.h",
"worker_global_scope_performance.cc",
......
......@@ -50,10 +50,10 @@
#include "third_party/blink/renderer/core/timing/performance_observer.h"
#include "third_party/blink/renderer/core/timing/performance_resource_timing.h"
#include "third_party/blink/renderer/core/timing/performance_user_timing.h"
#include "third_party/blink/renderer/core/timing/time_clamper.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_response.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_timing_info.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/time_clamper.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"
#include "third_party/blink/renderer/platform/wtf/std_lib_extras.h"
#include "third_party/blink/renderer/platform/wtf/time.h"
......
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/platform/time_clamper.h"
#include "third_party/blink/renderer/core/timing/time_clamper.h"
#include "base/bit_cast.h"
#include "base/rand_util.h"
......
......@@ -2,17 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_TIME_CLAMPER_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_TIME_CLAMPER_H_
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_TIMING_TIME_CLAMPER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_TIMING_TIME_CLAMPER_H_
#include "base/macros.h"
#include "third_party/blink/renderer/platform/platform_export.h"
#include "third_party/blink/renderer/core/core_export.h"
#include <stdint.h>
namespace blink {
class PLATFORM_EXPORT TimeClamper {
class CORE_EXPORT TimeClamper {
public:
static constexpr double kResolutionSeconds = 0.0001;
......@@ -39,4 +39,4 @@ class PLATFORM_EXPORT TimeClamper {
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_TIME_CLAMPER_H_
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_TIMING_TIME_CLAMPER_H_
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/platform/time_clamper.h"
#include "third_party/blink/renderer/core/timing/time_clamper.h"
#include "testing/gtest/include/gtest/gtest.h"
......
......@@ -1336,8 +1336,6 @@ jumbo_component("platform") {
"theme.cc",
"theme.h",
"theme_types.h",
"time_clamper.cc",
"time_clamper.h",
"timer.cc",
"timer.h",
"transforms/affine_transform.cc",
......@@ -1821,7 +1819,6 @@ jumbo_source_set("blink_platform_unittests_sources") {
"text/text_run_test.cc",
"text/unicode_utilities_test.cc",
"text/writing_mode_utils_test.cc",
"time_clamper_test.cc",
"timer_test.cc",
"transforms/affine_transform_test.cc",
"transforms/rotation_test.cc",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment