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

Side by Side Diff: chromecast/media/service/cast_renderer.h

Issue 2786493004: [Chromecast] Fix bug when audio device ID is empty string. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | chromecast/media/service/cast_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_ 5 #ifndef CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_
6 #define CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_ 6 #define CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "chromecast/media/base/media_resource_tracker.h" 9 #include "chromecast/media/base/media_resource_tracker.h"
10 #include "chromecast/media/base/video_resolution_policy.h" 10 #include "chromecast/media/base/video_resolution_policy.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 void OnWaitingForDecryptionKey(); 60 void OnWaitingForDecryptionKey();
61 void OnVideoNaturalSizeChange(const gfx::Size& size); 61 void OnVideoNaturalSizeChange(const gfx::Size& size);
62 void OnVideoOpacityChange(bool opaque); 62 void OnVideoOpacityChange(bool opaque);
63 void CheckVideoResolutionPolicy(); 63 void CheckVideoResolutionPolicy();
64 64
65 void OnVideoInitializationFinished(const ::media::PipelineStatusCB& init_cb, 65 void OnVideoInitializationFinished(const ::media::PipelineStatusCB& init_cb,
66 ::media::PipelineStatus status); 66 ::media::PipelineStatus status);
67 67
68 MediaPipelineBackendFactory* const backend_factory_; 68 MediaPipelineBackendFactory* const backend_factory_;
69 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 69 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
70 std::string audio_device_id_; 70 const std::string audio_device_id_;
71 VideoModeSwitcher* video_mode_switcher_; 71 VideoModeSwitcher* video_mode_switcher_;
72 VideoResolutionPolicy* video_resolution_policy_; 72 VideoResolutionPolicy* video_resolution_policy_;
73 MediaResourceTracker* media_resource_tracker_; 73 MediaResourceTracker* media_resource_tracker_;
74 // Must outlive |pipeline_| to properly count resource usage. 74 // Must outlive |pipeline_| to properly count resource usage.
75 std::unique_ptr<MediaResourceTracker::ScopedUsage> media_resource_usage_; 75 std::unique_ptr<MediaResourceTracker::ScopedUsage> media_resource_usage_;
76 76
77 ::media::RendererClient* client_; 77 ::media::RendererClient* client_;
78 CastCdmContext* cast_cdm_context_; 78 CastCdmContext* cast_cdm_context_;
79 scoped_refptr<BalancedMediaTaskRunnerFactory> media_task_runner_factory_; 79 scoped_refptr<BalancedMediaTaskRunnerFactory> media_task_runner_factory_;
80 std::unique_ptr<TaskRunnerImpl> backend_task_runner_; 80 std::unique_ptr<TaskRunnerImpl> backend_task_runner_;
81 std::unique_ptr<MediaPipelineImpl> pipeline_; 81 std::unique_ptr<MediaPipelineImpl> pipeline_;
82 bool eos_[2]; 82 bool eos_[2];
83 gfx::Size video_res_; 83 gfx::Size video_res_;
84 84
85 base::WeakPtrFactory<CastRenderer> weak_factory_; 85 base::WeakPtrFactory<CastRenderer> weak_factory_;
86 DISALLOW_COPY_AND_ASSIGN(CastRenderer); 86 DISALLOW_COPY_AND_ASSIGN(CastRenderer);
87 }; 87 };
88 88
89 } // namespace media 89 } // namespace media
90 } // namespace chromecast 90 } // namespace chromecast
91 91
92 #endif // CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_ 92 #endif // CHROMECAST_MEDIA_SERVICE_CAST_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/media/service/cast_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698