diff options
author | apavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-04 10:58:15 +0000 |
---|---|---|
committer | apavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-04 10:58:15 +0000 |
commit | 6857bbab378b7ae7f61399ff4af03ca2fcbe6c60 (patch) | |
tree | 0407945f372c0764e77297987de13832e5812aa9 /cc/debug | |
parent | 0fb050ca8edb8f9d5ec3c703784281796c107407 (diff) | |
download | chromium_src-6857bbab378b7ae7f61399ff4af03ca2fcbe6c60.zip chromium_src-6857bbab378b7ae7f61399ff4af03ca2fcbe6c60.tar.gz chromium_src-6857bbab378b7ae7f61399ff4af03ca2fcbe6c60.tar.bz2 |
Revert of Reland "Add base::TimeDelta::Max()" (https://codereview.chromium.org/183763011/)
Reason for revert:
http/tests/media/video-cookie.html is asserting on debug bots
Original issue's description:
> Reland "Add base::TimeDelta::Max()"
>
> Media was exposing max timedeltas to JSON, which wasn't working with
> infinity.
>
> R=scherkus@chromium.org
> TBR=ajwong@chromium.org,jar@chromium.org,jamesr@chomium.org,acolwell@chromium.org,nick@chromium.org
> BUG=None
>
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254717
TBR=ajwong@chromium.org,jar@chromium.org,scherkus@chromium.org,jamesr@chomium.org,acolwell@chromium.org,nick@chromium.org,gavinp@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=None
Review URL: https://codereview.chromium.org/179813009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254743 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/debug')
-rw-r--r-- | cc/debug/rasterize_and_record_benchmark.cc | 3 | ||||
-rw-r--r-- | cc/debug/rasterize_and_record_benchmark_impl.cc | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/cc/debug/rasterize_and_record_benchmark.cc b/cc/debug/rasterize_and_record_benchmark.cc index ab8d1cb..55f5677 100644 --- a/cc/debug/rasterize_and_record_benchmark.cc +++ b/cc/debug/rasterize_and_record_benchmark.cc @@ -108,7 +108,8 @@ void RasterizeAndRecordBenchmark::RunOnLayer(PictureLayer* layer) { return; - base::TimeDelta min_time = base::TimeDelta::Max(); + base::TimeDelta min_time = + base::TimeDelta::FromInternalValue(std::numeric_limits<int64>::max()); for (int i = 0; i < record_repeat_count_; ++i) { base::TimeTicks start = Now(); scoped_refptr<Picture> picture = Picture::Create( diff --git a/cc/debug/rasterize_and_record_benchmark_impl.cc b/cc/debug/rasterize_and_record_benchmark_impl.cc index 6e0a46a..5963923 100644 --- a/cc/debug/rasterize_and_record_benchmark_impl.cc +++ b/cc/debug/rasterize_and_record_benchmark_impl.cc @@ -104,7 +104,8 @@ void RasterizeAndRecordBenchmarkImpl::RunOnLayer(PictureLayerImpl* layer) { int tile_size = content_rect.width() * content_rect.height(); - base::TimeDelta min_time = base::TimeDelta::Max(); + base::TimeDelta min_time = + base::TimeDelta::FromInternalValue(std::numeric_limits<int64>::max()); bool is_solid_color = false; for (int i = 0; i < rasterize_repeat_count_; ++i) { |