| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "chromecast/browser/media/cast_renderer.h" | 5 #include "chromecast/browser/media/cast_renderer.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "chromecast/base/task_runner_impl.h" | 9 #include "chromecast/base/task_runner_impl.h" |
| 10 #include "chromecast/media/cdm/cast_cdm_context.h" | 10 #include "chromecast/media/cdm/cast_cdm_context.h" |
| 11 #include "chromecast/media/cma/base/balanced_media_task_runner_factory.h" | 11 #include "chromecast/media/cma/base/balanced_media_task_runner_factory.h" |
| 12 #include "chromecast/media/cma/base/cma_logging.h" | 12 #include "chromecast/media/cma/base/cma_logging.h" |
| 13 #include "chromecast/media/cma/base/demuxer_stream_adapter.h" | 13 #include "chromecast/media/cma/base/demuxer_stream_adapter.h" |
| 14 #include "chromecast/media/cma/pipeline/media_pipeline_impl.h" | 14 #include "chromecast/media/cma/pipeline/media_pipeline_impl.h" |
| 15 #include "chromecast/media/cma/pipeline/video_pipeline_client.h" | 15 #include "chromecast/media/cma/pipeline/video_pipeline_client.h" |
| 16 #include "chromecast/public/media/media_pipeline_backend.h" | 16 #include "chromecast/public/media/media_pipeline_backend.h" |
| 17 #include "chromecast/public/media/media_pipeline_device_params.h" | 17 #include "chromecast/public/media/media_pipeline_device_params.h" |
| 18 #include "media/base/audio_decoder_config.h" | 18 #include "media/base/audio_decoder_config.h" |
| 19 #include "media/base/demuxer_stream.h" | 19 #include "media/base/demuxer_stream.h" |
| 20 #include "media/base/demuxer_stream_provider.h" |
| 20 #include "media/base/media_log.h" | 21 #include "media/base/media_log.h" |
| 22 #include "media/base/renderer_client.h" |
| 21 | 23 |
| 22 namespace chromecast { | 24 namespace chromecast { |
| 23 namespace media { | 25 namespace media { |
| 24 | 26 |
| 25 namespace { | 27 namespace { |
| 26 // Maximum difference between audio frame PTS and video frame PTS | 28 // Maximum difference between audio frame PTS and video frame PTS |
| 27 // for frames read from the DemuxerStream. | 29 // for frames read from the DemuxerStream. |
| 28 const base::TimeDelta kMaxDeltaFetcher(base::TimeDelta::FromMilliseconds(2000)); | 30 const base::TimeDelta kMaxDeltaFetcher(base::TimeDelta::FromMilliseconds(2000)); |
| 29 } // namespace | 31 } // namespace |
| 30 | 32 |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 client_->OnVideoNaturalSizeChange(size); | 235 client_->OnVideoNaturalSizeChange(size); |
| 234 } | 236 } |
| 235 | 237 |
| 236 void CastRenderer::OnVideoOpacityChange(bool opaque) { | 238 void CastRenderer::OnVideoOpacityChange(bool opaque) { |
| 237 DCHECK(task_runner_->BelongsToCurrentThread()); | 239 DCHECK(task_runner_->BelongsToCurrentThread()); |
| 238 client_->OnVideoOpacityChange(opaque); | 240 client_->OnVideoOpacityChange(opaque); |
| 239 } | 241 } |
| 240 | 242 |
| 241 } // namespace media | 243 } // namespace media |
| 242 } // namespace chromecast | 244 } // namespace chromecast |
| OLD | NEW |