summaryrefslogtreecommitdiffstats
path: root/webkit/media/webmediaplayer_util.h
blob: 27888db0b8da0a4f76e7b35c51fa58fe944c47a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef WEBKIT_MEDIA_WEBMEDIAPLAYER_UTIL_H_
#define WEBKIT_MEDIA_WEBMEDIAPLAYER_UTIL_H_

#include "base/time.h"

namespace webkit_media {

// Platform independent method for converting and rounding floating point
// seconds to an int64 timestamp.
//
// Refer to https://bugs.webkit.org/show_bug.cgi?id=52697 for details.
base::TimeDelta ConvertSecondsToTimestamp(double seconds);

}  // namespace webkit_media

#endif  // WEBKIT_MEDIA_WEBMEDIAPLAYER_UTIL_H_