Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: chromecast/public/media/media_clock_device.h

Issue 1372393007: [Chromecast] Upgrade to new CMA backend API (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Address alokp@ comments Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/public/media/audio_pipeline_device.h ('k') | chromecast/public/media/media_component_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/public/media/media_clock_device.h
diff --git a/chromecast/public/media/media_clock_device.h b/chromecast/public/media/media_clock_device.h
deleted file mode 100644
index 7bb945eff33af7f7b7717eb44c2b798d8e3f7d0e..0000000000000000000000000000000000000000
--- a/chromecast/public/media/media_clock_device.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2014 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 CHROMECAST_PUBLIC_MEDIA_MEDIA_CLOCK_DEVICE_H_
-#define CHROMECAST_PUBLIC_MEDIA_MEDIA_CLOCK_DEVICE_H_
-
-#include <string>
-
-namespace chromecast {
-namespace media {
-
-// Interface for platform-specific pipeline clock.
-// Pipeline clocks follow this state machine:
-// -------------------
-// | |
-// v |
-// kUninitialized --> kIdle --------- kRunning
-//
-// {any state} --> kError
-//
-// Notes:
-// - Hardware resources should be acquired when transitioning from the
-// |kUninitialized| state to the |kIdle| state.
-// - The initial value of the timeline will only be set in the kIdle state.
-class MediaClockDevice {
- public:
- enum State {
- kStateUninitialized,
- kStateIdle,
- kStateRunning,
- kStateError,
- };
-
- virtual ~MediaClockDevice() {}
-
- // Returns the current state of the media clock.
- virtual State GetState() const = 0;
-
- // Changes the state and performs any necessary transitions.
- // Returns true when successful.
- virtual bool SetState(State new_state) = 0;
-
- // Sets the initial value of the timeline in microseconds.
- // Will only be invoked in state kStateIdle.
- // Returns true when successful.
- virtual bool ResetTimeline(int64_t time_microseconds) = 0;
-
- // Sets the clock rate.
- // |rate| == 0 means the clock is not progressing and that the renderer
- // tied to this media clock should pause rendering.
- // Will only be invoked in states kStateIdle or kStateRunning.
- virtual bool SetRate(float rate) = 0;
-
- // Retrieves the media clock time in microseconds.
- // Will only be invoked in states kStateIdle or kStateRunning.
- virtual int64_t GetTimeMicroseconds() = 0;
-};
-
-} // namespace media
-} // namespace chromecast
-
-#endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_CLOCK_DEVICE_H_
« no previous file with comments | « chromecast/public/media/audio_pipeline_device.h ('k') | chromecast/public/media/media_component_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698