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

Side by Side Diff: media/base/audio_decoder_config.h

Issue 1731403002: media: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | media/base/audio_decoder_config.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 MEDIA_BASE_AUDIO_DECODER_CONFIG_H_ 5 #ifndef MEDIA_BASE_AUDIO_DECODER_CONFIG_H_
6 #define MEDIA_BASE_AUDIO_DECODER_CONFIG_H_ 6 #define MEDIA_BASE_AUDIO_DECODER_CONFIG_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 AudioDecoderConfig(); 61 AudioDecoderConfig();
62 62
63 // Constructs an initialized object. 63 // Constructs an initialized object.
64 AudioDecoderConfig(AudioCodec codec, 64 AudioDecoderConfig(AudioCodec codec,
65 SampleFormat sample_format, 65 SampleFormat sample_format,
66 ChannelLayout channel_layout, 66 ChannelLayout channel_layout,
67 int samples_per_second, 67 int samples_per_second,
68 const std::vector<uint8_t>& extra_data, 68 const std::vector<uint8_t>& extra_data,
69 bool is_encrypted); 69 bool is_encrypted);
70 70
71 AudioDecoderConfig(const AudioDecoderConfig& other);
72
71 ~AudioDecoderConfig(); 73 ~AudioDecoderConfig();
72 74
73 // Resets the internal state of this object. |codec_delay| is in frames. 75 // Resets the internal state of this object. |codec_delay| is in frames.
74 void Initialize(AudioCodec codec, 76 void Initialize(AudioCodec codec,
75 SampleFormat sample_format, 77 SampleFormat sample_format,
76 ChannelLayout channel_layout, 78 ChannelLayout channel_layout,
77 int samples_per_second, 79 int samples_per_second,
78 const std::vector<uint8_t>& extra_data, 80 const std::vector<uint8_t>& extra_data,
79 bool is_encrypted, 81 bool is_encrypted,
80 base::TimeDelta seek_preroll, 82 base::TimeDelta seek_preroll,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 int codec_delay_; 133 int codec_delay_;
132 134
133 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler 135 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler
134 // generated copy constructor and assignment operator. Since the extra data is 136 // generated copy constructor and assignment operator. Since the extra data is
135 // typically small, the performance impact is minimal. 137 // typically small, the performance impact is minimal.
136 }; 138 };
137 139
138 } // namespace media 140 } // namespace media
139 141
140 #endif // MEDIA_BASE_AUDIO_DECODER_CONFIG_H_ 142 #endif // MEDIA_BASE_AUDIO_DECODER_CONFIG_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/audio_decoder_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698