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

Unified Diff: chromecast/media/cma/backend/audio_pipeline_device_default.h

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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
Index: chromecast/media/cma/backend/audio_pipeline_device_default.h
diff --git a/chromecast/media/cma/backend/audio_pipeline_device_default.h b/chromecast/media/cma/backend/audio_pipeline_device_default.h
index f8a1a84c1d59abba7c4ddfacebdf00a9c07ace42..814a0276a6fadecf23115040579fbd7af58c561d 100644
--- a/chromecast/media/cma/backend/audio_pipeline_device_default.h
+++ b/chromecast/media/cma/backend/audio_pipeline_device_default.h
@@ -8,7 +8,9 @@
#include <vector>
#include "base/macros.h"
-#include "chromecast/media/cma/backend/audio_pipeline_device.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/threading/thread_checker.h"
+#include "chromecast/public/media/audio_pipeline_device.h"
#include "chromecast/public/media/decoder_config.h"
namespace chromecast {
@@ -16,23 +18,23 @@ namespace media {
class MediaClockDevice;
class MediaComponentDeviceDefault;
+struct MediaPipelineDeviceParams;
class AudioPipelineDeviceDefault : public AudioPipelineDevice {
public:
- explicit AudioPipelineDeviceDefault(MediaClockDevice* media_clock_device);
+ AudioPipelineDeviceDefault(const MediaPipelineDeviceParams& params,
+ MediaClockDevice* media_clock_device);
~AudioPipelineDeviceDefault() override;
// AudioPipelineDevice implementation.
- void SetClient(const Client& client) override;
+ void SetClient(Client* client) override;
State GetState() const override;
bool SetState(State new_state) override;
- bool SetStartPts(base::TimeDelta time) override;
- FrameStatus PushFrame(
- const scoped_refptr<DecryptContext>& decrypt_context,
- const scoped_refptr<DecoderBufferBase>& buffer,
- const FrameStatusCB& completion_cb) override;
- base::TimeDelta GetRenderingTime() const override;
- base::TimeDelta GetRenderingDelay() const override;
+ bool SetStartPts(int64_t time_microseconds) override;
+ FrameStatus PushFrame(DecryptContext* decrypt_context,
+ CastDecoderBuffer* buffer,
+ FrameStatusCB* completion_cb) override;
+ RenderingDelay GetRenderingDelay() const override;
bool SetConfig(const AudioConfig& config) override;
void SetStreamVolumeMultiplier(float multiplier) override;
bool GetStatistics(Statistics* stats) const override;
@@ -43,6 +45,7 @@ class AudioPipelineDeviceDefault : public AudioPipelineDevice {
AudioConfig config_;
std::vector<uint8_t> config_extra_data_;
+ base::ThreadChecker thread_checker_;
DISALLOW_COPY_AND_ASSIGN(AudioPipelineDeviceDefault);
};

Powered by Google App Engine
This is Rietveld 408576698