OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WEBKIT_MEDIA_WEBMEDIAPLAYER_UTIL_H_ |
| 6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_UTIL_H_ |
| 7 |
| 8 #include "base/time.h" |
| 9 |
| 10 namespace webkit_media { |
| 11 |
| 12 // Platform independent method for converting and rounding floating point |
| 13 // seconds to an int64 timestamp. |
| 14 // |
| 15 // Refer to https://bugs.webkit.org/show_bug.cgi?id=52697 for details. |
| 16 base::TimeDelta ConvertSecondsToTimestamp(float seconds); |
| 17 |
| 18 } // namespace webkit_media |
| 19 |
| 20 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_UTIL_H_ |
OLD | NEW |