diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-12 20:43:22 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-12 20:43:22 +0000 |
commit | 7b3b9d92c446662c6f9d40e8a7b980435613a75c (patch) | |
tree | bc41a2b471e50402a3eb0bed916532ae7374f62f /media/base/synchronizer.h | |
parent | 3a5df027c057a3fe08c82746346becc1d14bd952 (diff) | |
download | chromium_src-7b3b9d92c446662c6f9d40e8a7b980435613a75c.zip chromium_src-7b3b9d92c446662c6f9d40e8a7b980435613a75c.tar.gz chromium_src-7b3b9d92c446662c6f9d40e8a7b980435613a75c.tar.bz2 |
Delete media::Synchronizer since it's never been used.
Code is nearly two years old and has yet to be used anywhere. My original intention was to use it to extract the synchronizing code from VideoRendererBase, but looks like I never got around to it.
BUG=54110
TEST=compiles
Review URL: http://codereview.chromium.org/4823002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65987 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/synchronizer.h')
-rw-r--r-- | media/base/synchronizer.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/media/base/synchronizer.h b/media/base/synchronizer.h deleted file mode 100644 index 122c32f..0000000 --- a/media/base/synchronizer.h +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) 2009 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. - -// Utility class for video renderers to help synchronize against a reference -// clock while also taking rendering duration into account. -// -// Video renderers should maintain an instance of this object for the entire -// lifetime since Synchronizer maintains internal state to improve playback. -// -// VideoRenderer usage is as follows: -// Receive a new frame from the decoder -// Call StartRendering -// Perform colour space conversion and render the frame -// Call StopRendering -// Call CalculateDelay passing in the rendered frame and optional next frame -// Issue delayed task or sleep on thread for returned amount of time - -#ifndef MEDIA_BASE_SYNCHRONIZER_H_ -#define MEDIA_BASE_SYNCHRONIZER_H_ - -#include "base/basictypes.h" -#include "base/time.h" -#include "media/base/buffers.h" - -namespace media { - -class Synchronizer { - public: - Synchronizer(); - ~Synchronizer(); - - // Starts the rendering timer. - void StartRendering(); - - // Stops the rendering timer. - void StopRendering(); - - // Calculates the appropriate amount of delay in microseconds given the - // current time, the current sample and the next sample (may be NULL, - // but is recommended to pass in for smoother playback). - void CalculateDelay(base::TimeDelta time, const StreamSample* now, - const StreamSample* next, base::TimeDelta* delay_out, - bool* should_skip_out); - - private: - static const int64 kMinFrameDelayUs; - static const int64 kMaxFrameDelayUs; - - base::TimeTicks rendering_start_; - base::TimeTicks rendering_stop_; - base::TimeDelta last_time_; - - DISALLOW_COPY_AND_ASSIGN(Synchronizer); -}; - -} // namespace media - -#endif // MEDIA_BASE_SYNCHRONIZER_H_ |