summaryrefslogtreecommitdiffstats
path: root/media/base/buffers.h
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-18 03:29:37 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-18 03:29:37 +0000
commiteb5d608b4b2a345da0ae80097ecfc7e522301590 (patch)
tree4471d19b8dbc00ca48944381910955d4cd22eed3 /media/base/buffers.h
parent47c7ec8be8c6829d7973568fe453f46046c2e818 (diff)
downloadchromium_src-eb5d608b4b2a345da0ae80097ecfc7e522301590.zip
chromium_src-eb5d608b4b2a345da0ae80097ecfc7e522301590.tar.gz
chromium_src-eb5d608b4b2a345da0ae80097ecfc7e522301590.tar.bz2
buffers.cc: replaced global TimeDelta constants with fully-inlined functions.
media_log.cc: replaced global AtomicSequenceNumber with LazyInstance. BUG=94925 TEST=none Review URL: http://codereview.chromium.org/9225001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118026 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/buffers.h')
-rw-r--r--media/base/buffers.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/media/base/buffers.h b/media/base/buffers.h
index 400eaf7..cbe89e1 100644
--- a/media/base/buffers.h
+++ b/media/base/buffers.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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.
@@ -35,10 +35,14 @@
namespace media {
// Indicates an invalid or missing timestamp.
-MEDIA_EXPORT extern const base::TimeDelta kNoTimestamp;
+MEDIA_EXPORT extern inline base::TimeDelta kNoTimestamp() {
+ return base::TimeDelta::FromMicroseconds(kint64min);
+}
// Represents an infinite stream duration.
-MEDIA_EXPORT extern const base::TimeDelta kInfiniteDuration;
+MEDIA_EXPORT extern inline base::TimeDelta kInfiniteDuration() {
+ return base::TimeDelta::FromMicroseconds(kint64max);
+}
class MEDIA_EXPORT StreamSample
: public base::RefCountedThreadSafe<StreamSample> {