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

Side by Side Diff: chromecast/media/cma/backend/media_pipeline_backend_wrapper.h

Issue 2173593002: [Chromecast] Limit number of concurrent audio and video decoders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use enum for decoder type Created 4 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 unified diff | Download patch
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_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_WRAPPER_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_WRAPPER_H_
6 #define CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_WRAPPER_H_ 6 #define CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_WRAPPER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 int GetStreamType() const; 43 int GetStreamType() const;
44 void SetStreamTypeVolume(float stream_type_volume); 44 void SetStreamTypeVolume(float stream_type_volume);
45 45
46 private: 46 private:
47 std::unique_ptr<MediaPipelineBackend> backend_; 47 std::unique_ptr<MediaPipelineBackend> backend_;
48 const int stream_type_; 48 const int stream_type_;
49 std::unique_ptr<AudioDecoderWrapper> audio_decoder_wrapper_; 49 std::unique_ptr<AudioDecoderWrapper> audio_decoder_wrapper_;
50 float stream_type_volume_; 50 float stream_type_volume_;
51 bool is_initialized_; 51 bool is_initialized_;
52 bool have_video_decoder_;
52 MediaPipelineBackendManager* const backend_manager_; 53 MediaPipelineBackendManager* const backend_manager_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(MediaPipelineBackendWrapper); 55 DISALLOW_COPY_AND_ASSIGN(MediaPipelineBackendWrapper);
55 }; 56 };
56 57
57 } // namespace media 58 } // namespace media
58 } // namespace chromecast 59 } // namespace chromecast
59 60
60 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_WRAPPER_H_ 61 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_BACKEND_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698