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

Side by Side Diff: content/renderer/media/render_media_client.h

Issue 2466463005: Support (E)AC3 passthrough
Patch Set: Revert changes in audio_renderer_mixer. Created 4 years, 1 month 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
OLDNEW
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 CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_
6 #define CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_ 6 #define CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 17 matching lines...) Expand all
28 void AddKeySystemsInfoForUMA( 28 void AddKeySystemsInfoForUMA(
29 std::vector<media::KeySystemInfoForUMA>* key_systems_info_for_uma) final; 29 std::vector<media::KeySystemInfoForUMA>* key_systems_info_for_uma) final;
30 bool IsKeySystemsUpdateNeeded() final; 30 bool IsKeySystemsUpdateNeeded() final;
31 void AddSupportedKeySystems( 31 void AddSupportedKeySystems(
32 std::vector<std::unique_ptr<media::KeySystemProperties>>* 32 std::vector<std::unique_ptr<media::KeySystemProperties>>*
33 key_systems_properties) final; 33 key_systems_properties) final;
34 void RecordRapporURL(const std::string& metric, const GURL& url) final; 34 void RecordRapporURL(const std::string& metric, const GURL& url) final;
35 bool IsSupportedVideoConfig(media::VideoCodec codec, 35 bool IsSupportedVideoConfig(media::VideoCodec codec,
36 media::VideoCodecProfile profile, 36 media::VideoCodecProfile profile,
37 int level) override; 37 int level) override;
38 bool IsPassthroughAudioSupported(::media::AudioCodec codec) override;
38 39
39 void SetTickClockForTesting(std::unique_ptr<base::TickClock> tick_clock); 40 void SetTickClockForTesting(std::unique_ptr<base::TickClock> tick_clock);
40 41
41 private: 42 private:
42 friend struct base::DefaultLazyInstanceTraits<RenderMediaClient>; 43 friend struct base::DefaultLazyInstanceTraits<RenderMediaClient>;
43 44
44 RenderMediaClient(); 45 RenderMediaClient();
45 ~RenderMediaClient() override; 46 ~RenderMediaClient() override;
46 47
47 // Makes sure all methods are called from the same thread. 48 // Makes sure all methods are called from the same thread.
(...skipping 15 matching lines...) Expand all
63 64
64 #if defined(UNIT_TEST) 65 #if defined(UNIT_TEST)
65 // Helper function to access the RenderMediaClient instance. Used only by unit 66 // Helper function to access the RenderMediaClient instance. Used only by unit
66 // tests. 67 // tests.
67 CONTENT_EXPORT RenderMediaClient* GetRenderMediaClientInstanceForTesting(); 68 CONTENT_EXPORT RenderMediaClient* GetRenderMediaClientInstanceForTesting();
68 #endif 69 #endif
69 70
70 } // namespace content 71 } // namespace content
71 72
72 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_ 73 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698