| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMECAST_PUBLIC_MEDIA_MEDIA_CLOCK_DEVICE_H_ | 5 #ifndef CHROMECAST_MEDIA_CMA_ADAPTER_MEDIA_CLOCK_DEVICE_H_ |
| 6 #define CHROMECAST_PUBLIC_MEDIA_MEDIA_CLOCK_DEVICE_H_ | 6 #define CHROMECAST_MEDIA_CMA_ADAPTER_MEDIA_CLOCK_DEVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace chromecast { | 10 namespace chromecast { |
| 11 namespace media { | 11 namespace media { |
| 12 | 12 |
| 13 // Interface for platform-specific pipeline clock. | 13 // Interface for platform-specific pipeline clock. |
| 14 // Pipeline clocks follow this state machine: | 14 // Pipeline clocks follow this state machine: |
| 15 // ------------------- | 15 // ------------------- |
| 16 // | | | 16 // | | |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 virtual bool SetRate(float rate) = 0; | 53 virtual bool SetRate(float rate) = 0; |
| 54 | 54 |
| 55 // Retrieves the media clock time in microseconds. | 55 // Retrieves the media clock time in microseconds. |
| 56 // Will only be invoked in states kStateIdle or kStateRunning. | 56 // Will only be invoked in states kStateIdle or kStateRunning. |
| 57 virtual int64_t GetTimeMicroseconds() = 0; | 57 virtual int64_t GetTimeMicroseconds() = 0; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace media | 60 } // namespace media |
| 61 } // namespace chromecast | 61 } // namespace chromecast |
| 62 | 62 |
| 63 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_CLOCK_DEVICE_H_ | 63 #endif // CHROMECAST_MEDIA_CMA_ADAPTER_MEDIA_CLOCK_DEVICE_H_ |
| OLD | NEW |